5

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?

zakkak
  • 1,861
  • 1
  • 19
  • 26
Oleg Kuts
  • 769
  • 1
  • 13
  • 26
  • 1
    possible duplicate of [How can I remove an entry in global configuration with git config?](http://stackoverflow.com/questions/11868447/how-can-i-remove-an-entry-in-global-configuration-with-git-config) – Tim Mar 31 '15 at 21:50

1 Answers1

7

git config --global --unset user.mail

From the man page

   --unset
       Remove the line matching the key from config file.
zakkak
  • 1,861
  • 1
  • 19
  • 26