Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save datt/5590517 to your computer and use it in GitHub Desktop.
Save datt/5590517 to your computer and use it in GitHub Desktop.
# change past commit's author email from 'vishal@blah.\(none\)' to '[email protected]'
git filter-branch --env-filter 'if [ $GIT_AUTHOR_EMAIL = vishal@blah.\(none\) ]; then [email protected]; fi; export GIT_AUTHOR_EMAIL'
# change past commit's author name from 'vishal' to 'Vishal Telangre'
git filter-branch --env-filter 'if [ $GIT_AUTHOR_NAME = vishal ]; then GIT_AUTHOR_EMAIL=Vishal\ Telangre; fi; export GIT_AUTHOR_NAME'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment