Skip to content

Instantly share code, notes, and snippets.

@nitinbhojwani
Created February 12, 2024 16:32
Show Gist options
  • Save nitinbhojwani/436281ec304696fd550ee75da6cc4683 to your computer and use it in GitHub Desktop.
Save nitinbhojwani/436281ec304696fd550ee75da6cc4683 to your computer and use it in GitHub Desktop.
Fix user name and email of multiple git commits
# Fix user name and email of multiple git commits
git config --local user.name "Nitin Bhojwani"
git config --local user.email "nitinbhojwani@outlook.com"
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