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
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/81805/489c1040c73d43b4901dff5bc0beed64.jpg)
How would you do it in Linux?
over 1 year ago
·
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/18641/cf1bb851e02d525ae8489cc9e95f7d18.jpeg)
@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#