|
|
|
|
|
by hk1337
979 days ago
|
|
Curious, why would you need separate ssh keys for the same site? In the above example, you're authenticating the GitHub, not really to client1 or client2. The only thing that would need to change, AFAIK, is the name and email you use for commits, not necessarily our ssh key. I do use this: [includeIf "gitdir:~/Projects/Client1/"]
path = ~/Projects/Client1/.gitconfig
[includeIf "gitdir:~/Projects/Client2/"]
path = ~/Projects/Client2/.gitconfig
to define the user.name and user.email for different projects |
|