Skip to content

Instantly share code, notes, and snippets.

@varshard
Last active May 15, 2024 01:51
Show Gist options
  • Select an option

  • Save varshard/5ba1c42b7567914a46b26ebcab52e1e8 to your computer and use it in GitHub Desktop.

Select an option

Save varshard/5ba1c42b7567914a46b26ebcab52e1e8 to your computer and use it in GitHub Desktop.
git config to load ssh key based on the current directory
[core]
sshCommand = ssh -i ~/.ssh/<work_private_key>
[user]
email=<org email>
name = <username>
[includeIf "gitdir:~/workspace/<org>/**"]
path=~/.<org>.gitconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment