问题
I accidentally typed the following wrong git command.
git config --global user.mail example@example.com
and now I see an extra property when I type git config--list
:
user.mail = "example@example.com"
How can i get rid of it?
回答1:
git config --global --unset user.mail
From the man page
--unset
Remove the line matching the key from config file.
来源:https://stackoverflow.com/questions/29379184/how-can-i-delete-git-user-property