Created
November 3, 2023 06:02
-
-
Save pharsi/57d34b1c2a325be36d269231f74b30fb to your computer and use it in GitHub Desktop.
Rewrite git history and change Authors or Co-authored by
This file contains hidden or 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 --env-filter ' | |
export GIT_COMMITTER_NAME="New committer name" | |
export GIT_COMMITTER_EMAIL="New committer email" | |
export GIT_AUTHOR_NAME="New committer name" | |
export GIT_AUTHOR_EMAIL="New committer email" | |
' -- --all | |
# Change 'New committer name' and 'New committer email' then run the command above to fix commit messages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment