Skip to content

Instantly share code, notes, and snippets.

@kairusds
Created July 4, 2023 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kairusds/0a1a6a63382c98d493db339f2301fba7 to your computer and use it in GitHub Desktop.
Save kairusds/0a1a6a63382c98d493db339f2301fba7 to your computer and use it in GitHub Desktop.
Use different ssh keys for different Git repositories
# Use this inside your project directory
git config core.sshCommand "ssh -i ~/.ssh/userkey"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment