Skip to content

Instantly share code, notes, and snippets.

@contractorwolf
Last active October 19, 2023 13:39
Show Gist options
  • Save contractorwolf/2d63bf07dea8ed19c9ef8fe2d75f6521 to your computer and use it in GitHub Desktop.
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
πšπš’πš πšŒπš˜πš—πšπš’πš --πšπš•πš˜πš‹πšŠπš• πšŠπš•πš’πšŠπšœ.πš‹πš›πš˜πš πšœπšŽ '!𝚏() { πš›πšŽπš™πš˜_πšžπš›πš•=$(πšπš’πš πšŒπš˜πš—πšπš’πš --𝚐𝚎𝚝 πš›πšŽπš–πš˜πšπšŽ.πš˜πš›πš’πšπš’πš—.πšžπš›πš•) && πš˜πš™πšŽπš— "${πš›πšŽπš™πš˜_πšžπš›πš•}"; }; 𝚏'
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