Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Several GitHub accounts
# 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
$ 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
You can’t perform that action at this time.