Last Updated: February 25, 2016
·
905
· goonnow

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

2 Responses
Add your response

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 ·