Skip to content

Instantly share code, notes, and snippets.

@knugie
Created February 4, 2014 23:02
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 knugie/8814215 to your computer and use it in GitHub Desktop.
Save knugie/8814215 to your computer and use it in GitHub Desktop.
use multiple github accounts
# switching identities in order to use multiple github accounts on one computer, you have to:
# add to ~/.ssh/config according to current github user:
Host github.com
IdentityFile ~/.ssh/<rsa_id_for_current_user>
# set git user globally or locally according to current github user:
git config --local user.name "My Name"
git config --local user.email "my.name@example.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment