Created
August 3, 2019 09:29
-
-
Save leonvisscher/a975bf444ac46180465f0fd18d3a7866 to your computer and use it in GitHub Desktop.
Multiple git repos with deploy key SSH config
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
# ~/.ssh/config | |
Host alias-repo-1 github.com | |
Hostname github.com | |
IdentityFile ~/.ssh/keyfile1 | |
Host alias-repo-2 github.com | |
Hostname github.com | |
IdentityFile ~/.ssh/keyfile2 | |
# Git clone commands | |
git clone git@alias-repo-1:user/repo1.git | |
git clone git@alias-repo-2:user/repo2.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment