Open remote git repository from command line
It's kind of ugly, and will only work in a few cases, but I came up with a way that works for me.
$ git remote -v | awk '/origin.*push/ {print $2}' | xargs open
I then assigned that to the alias gitrm
. I'm not sure if open
works on anything besides OSX, though.
In the end I realized that not every remote repository has a friendly web-based frontend, so it wouldn't really make sense for git to provide a command to open them.