Git name change

I am using Git GNU bash, version 4.3.42 (5) -release (x86_64-pc-msys) windows 8.1 pro. I gave him the username at the very beginning by typing the command: Git config --global user.name "xyz" but then when I got to Github that username was already accepted, so I tried changing my Git username in the same way like github. Entering the same command then enter: Git config --list but it continues to show the old username, I even tried to delete it, and then I will repeat the same command, but this is the same problem. Can someone tell me how to fix this?

+2
source share
2 answers

Look at the file .gitconfigin your home directory for global settings, as well as .git/configin a specific project for overriding values.

On Windows, there may be several additional steps to viewing these files .

+1
source

The above suggestion was great, but I decided to solve the problem differently:

I went to the Git GUI, then Edit, Then options and there I found another button to change the username. It was a success.

+1
source

Source: https://habr.com/ru/post/1676264/


All Articles