Skip to content

Instantly share code, notes, and snippets.

@insane-dev
Created September 22, 2020 21:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save insane-dev/98ca35b3886a7438c5a71ae34051ab05 to your computer and use it in GitHub Desktop.
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