I am using Linux OS on Chromebook. I'm learning Java. I downloaded a repository from GitHub. It lacked of .gitignore file, so I created it and I'm trying to commit it, but I get a message
$ git commit -m "I've created .gitignore file"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
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: empty ident name (for <(null)>) not allowed
I've done that, I typed my GitHub email, and then my name and surname.
$ git config --global "my_GitHub_account_email@gmail.com"
$ git config --global "Name Surname"
But when I type my name I get a message:
error: key does not contain a section: Name Surname
what am I doing wrong?