|
|
|
|
|
by l72
979 days ago
|
|
How do people handle multiple git identities with github+ssh? Since you always log in as the `git` user, you can't reuse keys. I end up with an ~/.ssh/config like: Host github-client1
Hostname github.com
User git
IdentityFile ~/.ssh/id_rsa-client1
Host github-client2
Hostname github.com
User git
IdentityFile ~/.ssh/id_rsa-client2
Then clone using `git clone git@github-client1:username/repo.git` Is there a better way? |
|
Main/default config (~/.gitconfig):
Then in .gitconfig-user-{a,b}: Or, even more separation, create separate users/accounts on the computers you use.