Oleg Kuts
Oleg Kuts

Reputation: 829

How can I delete git user property?

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?

Upvotes: 6

Views: 7100

Answers (1)

zakkak
zakkak

Reputation: 1971

git config --global --unset user.mail

From the man page

   --unset
       Remove the line matching the key from config file.

Upvotes: 7

Related Questions