Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Per-repository SSH keys
# If you want to use different keys depending on the repository you are working
# on, you can issue the following command while inside your repository:
git config core.sshCommand "ssh -o IdentitiesOnly=yes -i ~/.ssh/private-key-filename-for-this-repository -F /dev/null"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment