Created
August 14, 2022 11:20
-
-
Save sh-sabbir/8ac84c1caa95c3435dae8a60b127d546 to your computer and use it in GitHub Desktop.
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 config alias.change-commits '!'"f() { VAR=\$1; OLD=\$2; NEW=\$3; shift 3; git filter-branch --env-filter \"if [[ \\\"\$\`echo \$VAR\`\\\" = '\$OLD' ]]; then export \$VAR='\$NEW'; fi\" \$@; }; f " | |
git change-commits GIT_AUTHOR_NAME "<Old Name>" "<New Name>" -f | |
git change-commits GIT_AUTHOR_EMAIL <[email protected]> <[email protected]> -f | |
git change-commits GIT_COMMITTER_NAME "<Old Name>" "<New Name>" -f | |
git change-commits GIT_COMMITTER_EMAIL <[email protected]> <[email protected]> -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment