Last active
August 29, 2015 14:25
-
-
Save enten/64b4cb40f67399dc8fec to your computer and use it in GitHub Desktop.
How to read origin remote URL from git config
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
cat .git/config | grep remote -A 5 | grep 'url =' | awk -F ' = ' '{ print $2 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment