Skip to content

Instantly share code, notes, and snippets.

@Newlifer
Created February 1, 2017 07:37
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 Newlifer/2c144e3807acc4d3b5d8acf3abe34b38 to your computer and use it in GitHub Desktop.
Save Newlifer/2c144e3807acc4d3b5d8acf3abe34b38 to your computer and use it in GitHub Desktop.
fix.sh
git filter-branch --env-filter 'if [ "$GIT_AUTHOR_EMAIL" = "" ]; then GIT_AUTHOR_EMAIL=; GIT_AUTHOR_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