Skip to content

Instantly share code, notes, and snippets.

@MartyLake
Last active July 11, 2023 09:10
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 MartyLake/bc9a395a0579a2332cbf2ef9a2fc93a5 to your computer and use it in GitHub Desktop.
Save MartyLake/bc9a395a0579a2332cbf2ef9a2fc93a5 to your computer and use it in GitHub Desktop.
Deal with multiple git identities
export GIT_SSH_COMMAND="ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519_example -F /dev/null"
export GIT_AUTHOR_NAME='example'
export GIT_AUTHOR_EMAIL='example@gmail.com'
export GIT_COMMITTER_NAME='example'
export GIT_COMMITTER_EMAIL='example@gmail.com'
ssh-add -l | grep example || ssh-add ~/.ssh/id_ed25519_example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment