Skip to content

Instantly share code, notes, and snippets.

@blaise-io
Created July 14, 2020 21:18
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 blaise-io/7a90dafb9ecee3022c8cf89e92b4dcc4 to your computer and use it in GitHub Desktop.
Save blaise-io/7a90dafb9ecee3022c8cf89e92b4dcc4 to your computer and use it in GitHub Desktop.
# Overwrite GIT_AUTHOR_EMAIL so the commits are attributed to you
GIT_AUTHOR_EMAIL="me@example.org"
# -i /path/to/other/id_rsa: use a non-default identity file
# -o IdentitiesOnly=yes: ignore identities in the ssh agent
# -F /dev/null: ignore .ssh/config
GIT_SSH_COMMAND="ssh -i /path/to/other/id_rsa -o IdentitiesOnly=yes -F /dev/null"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment