Skip to content

Instantly share code, notes, and snippets.

@holmes
Last active July 10, 2017 23:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holmes/d5946c263ad48935dd86e662db125108 to your computer and use it in GitHub Desktop.
Save holmes/d5946c263ad48935dd86e662db125108 to your computer and use it in GitHub Desktop.
Change committer & author on my machine
# Check if the committer and author email addresses are different
git cat-file -p HEAD
# If they are, change the global setting for committer/author
export GIT_COMMITTER_EMAIL="holmes.j@gmail.com"
export GIT_AUTHOR_EMAIL="holmes.j@gmail.com"
git commit --amend -s
git push holmes -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment