Created
August 2, 2016 07:55
-
-
Save francisco-perez-sorrosal/5122ea5be99fc71f2a8d8912a15ed921 to your computer and use it in GitHub Desktop.
Change the committer/author data in Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git filter-branch --commit-filter ' | |
if [ "$GIT_COMMITTER_NAME" = "Francisco Perez-Sorrosal" ]; | |
then | |
GIT_COMMITTER_NAME="Francisco Perez-Sorrosal"; | |
GIT_AUTHOR_NAME="Francisco Perez-Sorrosal"; | |
GIT_COMMITTER_EMAIL="fperezsorrosal@gmail.com"; | |
GIT_AUTHOR_EMAIL="fperezsorrosal@gmail.com"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; | |
fi' HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment