Created
February 12, 2024 16:32
-
-
Save nitinbhojwani/436281ec304696fd550ee75da6cc4683 to your computer and use it in GitHub Desktop.
Fix user name and email of multiple git commits
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
# Fix user name and email of multiple git commits | |
git config --local user.name "Nitin Bhojwani" | |
git config --local user.email "[email protected]" | |
git rebase -r <last-right-git-commit-hash> --exec 'git commit --amend --no-edit --reset-author' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment