如何删除git用户属性?

Ole*_*uts 5 git git-config

我不小心键入了以下错误的git命令。

git config --global user.mail example@example.com
Run Code Online (Sandbox Code Playgroud)

现在,当我输入时,我会看到一个额外的属性git config--list

user.mail = "example@example.com"
Run Code Online (Sandbox Code Playgroud)

我如何摆脱它?

zak*_*kak 6

git config --global --unset user.mail

从手册页

   --unset
       Remove the line matching the key from config file.
Run Code Online (Sandbox Code Playgroud)