Sometime you accidentally commit with wrong name/email in Git, after a while you realise the mistake, so you required to change the name/email of the all the commits.
The git-filter-branch is the saviour, but before going with solution you have to read SAFETY and PERFORMANCE
Specifically, you can rewrite all the wrong author names and emails for all branches and tags with this command
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_AUTHOR_NAME="$CORRECT_NAME"
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags
Set the OLD_EMIAL, CORRECT_NAME and CORRECT_EMAIL then execute
After done this do a force push