Comment on How Yipit deploys from Github with multiple private reposComments−dekz14yI believe you can setup aliases in ssh_config where you specify the actual hostname and the key to use. Which is what I've used in the past to get the right key to just work with git (and gitolite). Host github-yipit-main Hostname github.com IdentityFile ~/.ssh/yipit_main_rsa then just go about your merry way of: git clone git@github-yipit-main:/yipit/yipit-main.git−andrewgross14yNot a bad idea since it would make easier to pull changes outside of the automation without needing to specify the GIT_SSH variable.
Comments
I believe you can setup aliases in ssh_config where you specify the actual hostname and the key to use. Which is what I've used in the past to get the right key to just work with git (and gitolite).
then just go about your merry way of:Not a bad idea since it would make easier to pull changes outside of the automation without needing to specify the GIT_SSH variable.