Created
January 4, 2021 11:39
-
-
Save revuel/c145c92632cbee27b6280903e0151c19 to your computer and use it in GitHub Desktop.
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
# REPLACE ELEMENTS SURROUNDED BY ANGLE BRACKETS ACCORDING TO YOUR NEEDS | |
git filter-branch --commit-filter ' | |
if [ "$GIT_COMMITTER_NAME" = "<NAME OF USER TO BE REPLACED>" ]; | |
then | |
GIT_COMMITTER_NAME="<NEW USER NAME OF THE COMMIT"; | |
GIT_AUTHOR_NAME="<NEW USER NAME OF THE COMMIT>"; | |
GIT_COMMITTER_EMAIL="<NEW USER EMAIL OF THE COMMIT>"; | |
GIT_AUTHOR_EMAIL="<NEW USER EMAIL OF THE COMMIT>"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; | |
fi' HEAD |
Author
revuel
commented
Mar 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment