Last active
November 10, 2015 08:48
-
-
Save stokarenko/8d8b93aef805d8d9b790 to your computer and use it in GitHub Desktop.
Several 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
# should be placed in ~/.ssh/config | |
Host some_other_github_account_name.github.com | |
HostName github.com | |
User git | |
IdentityFile ~/.ssh/id_rsa_some_other_github_account_name |
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
$ ssh-add ~/.ssh/id_rsa_some_other_github_account_name | |
$ git clone git@some_other_github_account_name.github.com:community/repo.git | |
# Add to repo/.git/config the `name` section like this | |
# [user] | |
# name = some_other_github_account_name | |
# email = some_other_github_account_name@users.noreply.github.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment