git modify the mailbox and username (green dot problem solving upload github does not appear)

Generally green dot does not appear that it had uploaded the wrong mailbox sake
modified as follows:
Open the git bash interface
1:

Enter
$ git config --list

You can view some of the things configurations. You can see what user.name and user.email respectively Yes. .
If you have not initialized. Less direct:
$ git config --global user.name "Enter your user name"
$ git config --global user.email "Enter your email"

This can be initialized.

2:

If you already initialized, but accidentally put the wrong mailbox and user name, and then they would change it.
I see some people say the Internet continues to $ git config --global user.name "Enter your user name" or $ git config --global user.email "Enter your email" to modify the mailbox and password. I tried it, is not acceptable (at least in window10 environment) will give this error:
warning: user.name has Multiple values
error: CAN not Overwrite Multiple values A SINGLE value with
the Use A regexp, --add or - -replace-all to change user.name.

Here we give --repalce-all this stuff.

Then I tried to use

$  git config --global --replace-all user.email "输入你的邮箱" 
$  git config --global --replace-all user.name "输入你的用户名"

And then see the next
$ git config --list
found modify a success.

Guess you like

Origin blog.51cto.com/14233078/2422165