简体   繁体   中英

How can I change my global user.name in Git? Note: I had already specified the global username and email using config

I had first set only my first name as my global username then I tried to change it and set my full name. In order to do that I tried config command but it shows error : See here

Then I used --replace-all command to do that but my username changed to "--replace-all" : See here

How can I change this now?

The order of --replace-all matters in this case. Have you tried it like this?

git config --global --replace-all user.name "Apar Agarwal"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM