I am getting this warning when I try to set my user name in Tower:
warning: user.name has multiple values
I have checked in a terminal window and found that I have three usernames:
macmini:HiBye shannoga$ git config --get-all user.name Shani shani shani
How can I delete two of the user names?
Go to Control Panel > User Accounts > Credential Manager > Windows Credentials. You will see Git credentials in the list (e.g. git:https://). Click on it, update the password, and execute git pull/push command from your Git bash and it won't throw any more error messages.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With