Skip to content

Instantly share code, notes, and snippets.

@nemesifier
Created August 25, 2015 09:05
Show Gist options
  • Save nemesifier/450e18419c41525bb7cb to your computer and use it in GitHub Desktop.
Save nemesifier/450e18419c41525bb7cb to your computer and use it in GitHub Desktop.
Git: reset author to several commits
git filter-branch --env-filter 'if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ]; then
[email protected];
GIT_AUTHOR_NAME="Correct Name";
GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL;
GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME; fi' -- <COMMIT>..<BRANCH>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment