shannoga shannoga - 1 year ago 134
Git Question

Delete username from a Git repository

I am getting this warning when I try to set my user name in Tower:

warning: has multiple values

I have checked in a terminal window and found that I have three usernames:

macmini:HiBye shannoga$ git config --get-all

How can I delete two of the user names?

Answer Source

Use git config -e and you should see something like:

    name = Shani
    name = shani
    name = shani

Delete the lines you don't want.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download