Open current repository page via command line
Open the repository in browser via command line.
Please put the code below inside ~/.gitconfig
NOTE: Support only MacOS
# ~/.gitconfig
[alias]
open = !git ls-remote --get-url | sed 's/:/\\//' | sed 's/^git@/https:\\/\\//' | xargs open
Written by goonnow
Related protips
2 Responses
How would you do it in Linux?
over 1 year ago
·
@adevore3, I guess you could use xargs -0 xdg-open instead of xargs open
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Macos
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#