Created
February 4, 2014 23:02
-
-
Save knugie/8814215 to your computer and use it in GitHub Desktop.
use multiple github accounts
This file contains 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
# 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