Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

More than one value for the key user.name Git

Tags:

git

github

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 name?

like image 268
tshauck Avatar asked Nov 30 '10 06:11

tshauck


People also ask

What should my git user name be?

You can use your proper name, username or whatever identifier you'd like for user.name. It will be logged in each commit along with your email address, commit message and various other details. And you're exactly right about how GitHub uses the email address. Good luck with git!


1 Answers

If you just want to reset all of them:

git config --global --replace-all user.email "[email protected]" 
like image 177
mb21 Avatar answered Sep 22 '22 09:09

mb21