更改Git用户名 [英] Changing the Git username
问题描述
我使用Git GNU bash,版本4.3.42(5) - 释放(x86_64-pc-msys)
windows 8.1 pro。
我通过输入以下命令给它一个用户名:
git config --global user.namexyz
但是当我到Github时,这个用户名是已经采取,所以我试图改变我的Git用户名是一样的Github。输入相同的命令
,然后键入:
git config --list
但它一直显示旧用户名,我甚至试图卸载它,然后重新输入相同的命令,但它是同样的问题。
有人可能会告诉我如何修复它? 同时查看。 gitconfig
文件在您的主目录中进行全局设置,并在特定项目中为
在Windows中,可能会有一些额外的步骤查看这些文件。
I use Git GNU bash, version 4.3.42(5)-release (x86_64-pc-msys) windows 8.1 pro. I gave it a username at the very beginning by typing the command: git config --global user.name"xyz" but then when i've got to Github, this username was already taken, so i tried to change my Git username to be the same as the one Github. Typing the same command then typing : git config --list but it keeps showing the old username, i've tried even to uninstall it, and then retype the same command, but it's the same issue. Someone maybe can tell me how to fix it ?
Look at both the .gitconfig
file in your home directory for global settings and also .git/config
in a specific project for override values.
In Windows there may be some extra steps to view these files.
这篇关于更改Git用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!