Skip to content

Instantly share code, notes, and snippets.

@nickcox
Last active January 2, 2023 23:12
Show Gist options
  • Save nickcox/cd56e7a7bb24b91a9d0bdb21ff8ffb64 to your computer and use it in GitHub Desktop.
Save nickcox/cd56e7a7bb24b91a9d0bdb21ff8ffb64 to your computer and use it in GitHub Desktop.
Set git SSH config per repository
# https://www.fabian-keller.de/blog/configuring-a-different-ssh-key-per-git-repository/
git config core.sshCommand "ssh -F ~/.ssh/config-github-client-one" # config file
# or use identity file directly: git config core.sshCommand "ssh -i ~/.ssh/some_id_file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment