Last active
December 19, 2019 08:02
-
-
Save nb5p/b773c43934f7a254b6225a58b330a1aa to your computer and use it in GitHub Desktop.
Rewrite Git Author And Committer After Rename GitHub Username.
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 --global user.name "nb5p"; git config --global user.email "2098464+nb5p@users.noreply.github.com" |
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 -f --commit-filter ' | |
| GIT_AUTHOR_NAME="nb5p"; | |
| GIT_AUTHOR_EMAIL="2098464+nb5p@users.noreply.github.com"; | |
| GIT_COMMITTER_NAME="nb5p"; | |
| GIT_COMMITTER_EMAIL="2098464+nb5p@users.noreply.github.com"; | |
| git commit-tree "$@"; | |
| ' HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment