More than one value for the key user.name Git

后端 未结 7 1009
再見小時候
再見小時候 2020-12-12 20:32

For some reason I\'m getting the error that \"More than one value for the key user.name\" when I try to set the user.name for my git account. How can I set it to a single n

相关标签:
7条回答
  • 2020-12-12 21:06

    First look to see what user.names are in the config:

    git config --list
    

    Example output:

    user.email=abarker@cern.ch
    user.name=fiveisgreen
    user.github=fiveisgreen
    user.name=Anthony
    

    In this example, user.name is listed twice. To remove the duplicate do:

    git config --global --unset user.name
    
    0 讨论(0)
提交回复
热议问题