Skip to content

Instantly share code, notes, and snippets.

@stokarenko
Last active November 10, 2015 08:48
Show Gist options
  • Select an option

  • Save stokarenko/8d8b93aef805d8d9b790 to your computer and use it in GitHub Desktop.

Select an option

Save stokarenko/8d8b93aef805d8d9b790 to your computer and use it in GitHub Desktop.
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 = [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment