Last active
January 2, 2023 23:12
-
-
Save nickcox/cd56e7a7bb24b91a9d0bdb21ff8ffb64 to your computer and use it in GitHub Desktop.
Set git SSH config per repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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