Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
change author name and email for old commits
# updated: i'm always fucked up with this command.
# from
# or better, use this shell script from GitHub
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='<newname>'; GIT_AUTHOR_EMAIL='<newemail>'; GIT_COMMITTER_NAME='<oldname>'; GIT_COMMITTER_EMAIL='<oldemail>';" HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment