java - On the same computer, I submit the code and then push it to the remote warehouse. The submitted submitter and the pusher are inconsistent. How to solve it?
PHP中文网
PHP中文网 2017-06-13 09:22:42
0
2
835

and push are both operated on the same computer. It may be that the original userName on this computer is qs, but then I have set
global user.name and user. The email is now submitted and pushed by the following df2wd..., but why are the two inconsistent and how to solve it?
The end should look like this

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
Ty80

@It’s just an ID. It’s already said very well. You can use the following command to check the current git configuration first.

git config --list
Then just add the user and email address:

git config user.name "Author Name"
git config user.email "Author Email"
After adding it, future submissions will be unified!

黄舟

If you just want the submitter of this project to remain the same

cd your/app/path
git config --local -e 或者 git config user.name " yourname"   //这是更改当前 git 版本库的配置文件

The next submission will be the name you set. If you want to modify the existing one, you can refer to this blog:
http://i.dotidea.cn/2015/04/g...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template