Git "Please Tell me who you are"

Asked

Viewed 4,344 times

0

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

*** 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 'Tomas D'Alessandro@DESKTOP-01L85NP.(none)')

Do I need to post the same e-mail from github ? Whenever I open the app I need to add this information, I would not be able to automate ?

  • If you use --global you only need to do it once.

1 answer

1


I need to post the same e-mail from github ?

No. However, for safety, we can make the Github rejects commits that display private configured emails.

Whenever I open the app I need to add this information, I would not be able to automate ?

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

  • Hi Ken. Where did you see that Github rejects commits made by another email?

  • I was confused about this. Apologies... Actually the option is Block command line pushes that Expose my email.

  • 1

    From what I understand, you can use any email, you just need to have access to the repository somehow. For example, have valid SSH keys.

  • 1

    True. I was wrong about the setup. I made it on my account a long time ago. The situation is that there is a configuration that rejects commits that are done by your private Github email.

Browser other questions tagged

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