以下命令:
$git config --global --list给我:
user.name=test user
user.name=gotqn我想去掉名字。我引用了这个文章,并执行了以下命令,但没有任何结果:
git config --global --remove-section user.name='test user'
git config --global --remove-section user.name="test user"
git config --global --remove-section user.name=test user
git config --global --remove-section user.name
git config --global --remove-section test user我正在使用Ubuntu12.04和
git version给我
git version 1.7.9.5请在这方面提供帮助,因为我想使用git保存我的项目,但不想用'test user‘名执行命令。
发布于 2012-10-25 20:36:59
您可以在主文件夹中编辑~/.gitconfig文件。这是保存所有--global设置的地方。
发布于 2013-04-17 20:38:44
极迟的回答,但希望仍然有帮助:
git config --global --unset-all user.name那么你可以自由地:
git config --global --add user.name <whatever>发布于 2013-06-26 08:05:06
git config --global --unset-all user.name或者您可以这样更改用户名:
git config --global --replace-all user.name "New User Name"https://askubuntu.com/questions/206449
复制相似问题