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
In case you have for instance two separate Github accounts and two separate projects (project A and project B) you'd like to have two separate ssh-keys for: | |
Open an A project's .git/config file | |
Add | |
[core] | |
... | |
sshCommand = ssh -i ~/.ssh/id_first_key | |
Do the same for your project B with ~/.ssh/id_second_key |