Last active
October 19, 2023 13:39
-
-
Save contractorwolf/2d63bf07dea8ed19c9ef8fe2d75f6521 to your computer and use it in GitHub Desktop.
Adding "git browse" to your git commands to open the browser on your git repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
πππ ππππππ --ππππππ πππππ.ππππ ππ '!π() { ππππ_πππ=$(πππ ππππππ --πππ ππππππ.ππππππ.πππ) && ππππ "${ππππ_πππ}"; }; π' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.browse '!f() { repo_url=$(git config --get remote.origin.url) && start \"\" \"${repo_url}\"; }; f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment