For those who wants to rewrite their username and email from old git commits.
From your terminal: Execute the next script following with your desired info in this order:
./git-info-rewrite.sh <[email protected]> <username> <[email protected]>
Copy the script from above replacing the params with your actual info (omit the "<>" symbols)
If the commits you want to change are already in a remote repository and you want to push the changes you will need to force the push. (Because we are basically rewriting the repo's history)
git push --force --tags origin 'refs/heads/*'