Created
September 4, 2024 03:54
-
-
Save nodakai/5b23074c9dbc3143f299498981a3462e to your computer and use it in GitHub Desktop.
Revisions
-
nodakai created this gist
Sep 4, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ #!/bin/bash set -xeu git filter-branch --env-filter ' OLD_EMAIL="nodakai@old.example.net" CORRECT_NAME="NODA Kai" CORRECT_EMAIL="nodakai@new.example.net" if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] then export GIT_COMMITTER_NAME="$CORRECT_NAME" export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" fi if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ] then export GIT_AUTHOR_NAME="$CORRECT_NAME" export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL" fi ' "$@"