Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I delete git user property?

Tags:

git

git-config

I accidentally typed the following wrong git command.

git config --global user.mail [email protected]

and now I see an extra property when I type git config--list:

user.mail = "[email protected]"

How can i get rid of it?

like image 957
Oleg Kuts Avatar asked Mar 31 '15 21:03

Oleg Kuts


1 Answers

git config --global --unset user.mail

From the man page

   --unset
       Remove the line matching the key from config file.
like image 93
zakkak Avatar answered Oct 01 '22 05:10

zakkak