Git Commit Error

1

I have Windows, I installed git, I made the config with the data of user and email, however it happens that when I commit to a local repository created, it asks me to identify config (user.mail) .

What is very strange, because if I give config --list it shows the data that I entered initially and if I open the .config file it is also there.

Can anyone help me? Note: I can add (add) to the stage but not commit!

    
asked by anonymous 11.07.2015 / 07:39

1 answer

2

What seems to be the error is that you have set user.mail and not user.email . So what you should do to configure the email is the following command line:

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

And when you commit the next commit, it will not prompt you to enter the email data for config.

    
29.07.2015 / 18:15