warning: user.name has multiple values
error: cannot overwrite multiple values with a single value
Use a regexp, --add or --set-all to change user.name.
[user@fc ~]$
[user@fc ~]$ cat ~/.gitconfig
remove the name here.
Add the new name in /etc/bashrc
[user@fc ~]$ vi /etc/bashrc
git config --global user.name "Firstname lastname"
[user@fc ~]$
Refer:
https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
To set email, use
$ git config --global user.email "youname@yours.com"
To set email, use
$ git config --global user.email "youname@yours.com"
To verify the results, use
$ git config -l
https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
ReplyDelete$ git config --global user.name "John Doe"
Thanks! Updated the post
Delete