1

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

i've try git config --global --unset user. email and git config --global --unset user. name but it wont dissaper. how to fix this?

1

2 Answers 2

2

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 =.

Sign up to request clarification or add additional context in comments.

2 Comments

it comes like this : file:.git/config where is it?
i've reseach and i found its from local. thankyou for the solutions
1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.