Skip to content

Instantly share code, notes, and snippets.

@holmes
holmes / gist:d5946c263ad48935dd86e662db125108
Last active July 10, 2017 23:40
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