Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
Attached: 1 image
My most used #git alias? "git browse" to open the repo's remote URL in the web browser. Works for #GitHub, #AzureDevOps, #BitBucket, etc. Set it up with:
git config --global alias.browse 'start `git config remote.origin.url`'
"start" only works on Windows tho.
Requires a https (not ssh) remote git URL.
The screenshot shows additional "echo" code in the .gitconfig file because I like my git aliases to display the actual code they are executing before they run it.
Ah, so it’s completely useless
I believe you can replace
start
with the command that is suitable for your system (e.g.,xdg-open
for linux).