How can I delete git user property?

跟風遠走 提交于 2019-12-23 10:13:56

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!