Skip to content

Instantly share code, notes, and snippets.

@Dudemullet
Last active August 29, 2015 14:05
Show Gist options
  • Save Dudemullet/3e97e66b4920c627b7d4 to your computer and use it in GitHub Desktop.
Save Dudemullet/3e97e66b4920c627b7d4 to your computer and use it in GitHub Desktop.
Open any one of your remote git repos in a browser via cli. Great after pushing changes and wanting to create a pull request. Append this to your .gitconfig file
[alias]
web = "!f(){ url=$(git config --get remote.$1.url); git web--browse $url;}; f"
# useage
# git web origin - open your remote origin repo in the browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment