Created
February 16, 2023 13:53
-
-
Save esabook/ae4f22caf402038f60baffea6795aa86 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
1. Open bash | |
2. goto root project | |
3. git config --global 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" | |
4. git change-commits GIT_AUTHOR_EMAIL "[email protected]" "[email protected]" HEAD~50..HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment