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?