Last active
May 8, 2020 16:32
-
-
Save roeniss/4f53399527a8a0de0f9a7ffd04cfa45e to your computer and use it in GitHub Desktop.
open git remote repository with Chrome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Using Chrome, open a github page of remote repo on current directory. | |
# tested on MacOS | |
REMOTE=$(git remote -v | sed -n '1,1p' | sed 's/.*https/https/' | sed 's/\ .*//') | |
open -a Google\ Chrome $REMOTE | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment