Basically what I'm trying to do is have a handy tool where I can say:
git open
This will just open up the current github repository in your browser. If I can get the name I could just use an alias with https://github.com/{user or org}/{repo name}.
try this bash function
For Linux:
function git-open-url(){
xdg-open `git config --get remote.origin.url`
}
For Mac:
function git-open-url(){
open `git config --get remote.origin.url`
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With