Skip to content

Instantly share code, notes, and snippets.

@yrstruly
Created April 12, 2012 19:46
Show Gist options
  • Save yrstruly/2370513 to your computer and use it in GitHub Desktop.
Save yrstruly/2370513 to your computer and use it in GitHub Desktop.
Get the GitHub user name from the origin of a clone.
git remote show origin | grep Fetch | sed -e 's/^.*://' -e 's/\/.*//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment