GIT error: key does not contain a Section: user-mail

Asked

Viewed 1,196 times

1

I did the following sequence after installing GIT in my note with windows 10:

$ git config --global user.name "Fabrício Valle"
$ git config --global user.mail "meu email"

*informed my email correctly, with own domain. I also used with another email, gmail.

In that step, you made the following mistake:

~$ git config --global user-mail "[email protected]" error: key does not contain a Section: user-mail


  • The same with the command $ git config --global core-editor subl gave the same error as "key does..." error: key does not contain a Section: core-editor

1 answer

2


  • Solved. But every time I use git I have to run his . exe? Each time I close and then use it again, a new installation is requested. It is the first time in my life that I install a . exe in windows and happens this.

  • I’m glad it was solved. In this case, please mark this answer as correct. And well, always try to distrust situations like this Fabrício, if it seems strange is because very likely there is something wrong. It is not normal to have to reinstall any program at every use. Study a little for a solution and if necessary, publish a new question reporting what is occurring.

  • If you just click on the "V", it is already marked as the best answer. Thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.