Skip to content

Instantly share code, notes, and snippets.

@subratrout
Created March 10, 2017 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subratrout/c2f677b21413b1f6da53ce1a013be0ba to your computer and use it in GitHub Desktop.
Save subratrout/c2f677b21413b1f6da53ce1a013be0ba to your computer and use it in GitHub Desktop.
You can configure an individual repo to use a specific user / email address which overrides the global configuration.
From the root of the repo, run
git config user.name "Your Name Here"
git config user.email your@email.com
whereas the default user / email is configured in your ~/.gitconfig
git config --global user.name "Your Name Here"
git config --global user.email your@email.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment