Created
September 26, 2011 11:57
-
-
Save samdark/1242081 to your computer and use it in GitHub Desktop.
Git: change committer info for all commits in a branch
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
git filter-branch --commit-filter ' | |
if [ "$GIT_COMMITTER_NAME" = "Alex" ]; | |
then | |
GIT_COMMITTER_NAME="Alexander Makarov"; | |
GIT_AUTHOR_NAME="Alexander Makarov"; | |
GIT_COMMITTER_EMAIL="[email protected]"; | |
GIT_AUTHOR_EMAIL="[email protected]"; | |
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