Git "Please tell me who you are"

0

Recently I created a project on my PC and I'm trying to commit pro github, but this message always appears.

*** 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: unable to auto-detect email address (got 'Tomas D'Alessandro@DESKTOP-01L85NP.(none)')

Do I need to put the same email as github? Whenever I open the app I need to add this information, would not it be automated?

    
asked by anonymous 03.10.2018 / 07:11

1 answer

1
  

Do I need to put the same email as github?

No. However, for safety, you can make the GitHub rejects commits that display emails configured as private.

  

Whenever I open the app I need to add this information, would not it be automated?

The configuration only needs to be done once. If you read the message using the --global option, you save the configuration for all of your repositories.

    
03.10.2018 / 13:57