-
Notifications
You must be signed in to change notification settings - Fork 12
Home
Craig Knudsen edited this page Jun 25, 2017
·
2 revisions
Welcome to the crap wiki!
While crap does not yet support changing the username of the CVS commits, this can be done afterwards using the following command:
git filter-branch --env-filter 'WRONG_EMAIL="oldusername"
NEW_NAME="Frank Smith"
NEW_EMAIL="newemail@abc.123"
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_AUTHOR_NAME="$NEW_NAME"
export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags
Original source: https://www.git-tower.com/learn/git/faq/change-author-name-email