Delete username from a Git repository
If you want to replace the wrong ones with the proper one:
git config --global --replace-all user.name "FName LName"
same applies for user mail:
git config --global --replace-all user.mail "[email protected]"
Use git config -e
and you should see something like:
[user]
name = Shani
name = shani
name = shani
Delete the lines you don't want.
This worked for me on my Mac:
git config --global --unset-all user.name