Skip to content

Instantly share code, notes, and snippets.

@gabrielgodoy-zz
Last active April 10, 2016 06:01
Show Gist options
  • Save gabrielgodoy-zz/484d5c8d63806aa05883b188f8fd604e to your computer and use it in GitHub Desktop.
Save gabrielgodoy-zz/484d5c8d63806aa05883b188f8fd604e to your computer and use it in GitHub Desktop.
Git - Change author email in all commits
git filter-branch --env-filter 'if [ “$GIT_AUTHOR_EMAIL” = “[CURRENT_EMAIL]” ]; then GIT_AUTHOR_EMAIL=[NEW_EMAIL]; GIT_AUTHOR_NAME=“[NEW_NAME]”; GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL; GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; fi' -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment