I entered the wrong user.name and user.email. and now git config -l looks like this:

i've try git config --global --unset user. email and git config --global --unset user. name but it wont dissaper. how to fix this?
CodePudding user response:
Use git config --show-origin --list to find where those configs from. This will give you the important information about how to remove it precisely.
They maybe NOT from global.
Something not important: They are not "empty", they seems having a value of =.
CodePudding user response:
That config is set in your current repository, not globally. As such, you should not use --global when unsetting. Additionally, since you have them set multiple times, you'll have to use --unset-all:
git config --unset-all user.name
git config --unset-all user.email
