Skip to content

Comment on How Yipit deploys from Github with multiple private repos

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).

    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

Not a bad idea since it would make easier to pull changes outside of the automation without needing to specify the GIT_SSH variable.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.