Ubuntu – git config global file – remove settings

git

The following command:

$git config --global --list

gives me:

user.name=test user
user.name=gotqn

I want to remove the first name. I referred to this article and have done the following commands but without any result:

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

I am using Ubuntu 12.04 and

git version

gives me

git version 1.7.9.5

Please, help on this, because I want to try to save my project using git, but do not want to exec the command with 'test user' name.

Best Answer

You can edit the ~/.gitconfig file in your home folder. This is where all --global settings are saved.

Related Question