Skip to content

Instantly share code, notes, and snippets.

@enten
Last active August 29, 2015 14:25
Show Gist options
  • Save enten/64b4cb40f67399dc8fec to your computer and use it in GitHub Desktop.
Save enten/64b4cb40f67399dc8fec to your computer and use it in GitHub Desktop.
How to read origin remote URL from git config
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