Git Commit Error

Asked

Viewed 931 times

1

I’m with Windows, I installed git, I config with user and email data, but it turns out that when I commit to some local repository created, it asks me to identify config (user.mail).

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

Can anyone help me? Note: I can add(add) in the Stage but save(commit) no!

Retorno do comando

  • Did you install tortoisegit? Or just git from the command line? Or both?

  • Just git! But anyway, someone at least has an idea of what it might be?

  • If you put the command git config --get --global user.email, what he returns?

  • @Felipeavelar Returns the email configured as global!

1 answer

2


What seems to be the error is that you have set up 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 next, it won’t prompt you to enter email data for config.

Browser other questions tagged

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