vkzpaw
Last Updated: February 25, 2016
·
743
· 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

11923

How would you do it in Linux?

over 1 year ago ·
22810

@adevore3, I guess you could use xargs -0 xdg-open instead of xargs open

over 1 year ago ·