Error committing [closed]

1

I'm committing to a remote repository that I have in gitlab and I had already established the name and the mail. But when I do the commit it tells me this:

D:\WORKSPACES\CONTROL DE VERSIONES\spa>git commit -m "Datos geojson añadidos"

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'Pelayo@PELAYO.(none)')

Edited:

I fixed it, but I had to go to the config file of the repository and I had to add:

[user]
name= ""
mail= ""

Why did not I add it by doing it with the command git config --global user.name/mail?

    
asked by Pelayo 16.05.2018 в 11:25
source

1 answer

-1

The problem is clearly typing, surely something was entered wrong therefore I do not create the config file with credentials.

Seeing your code I see that you have a bad email configuration, you should have something like that.

$ git config --global user.name "Mi Nombre"
$ git config --global user.email [email protected]

The email must go without quotes.

    
answered by 13.06.2018 в 19:48