Git: please tell me who you are error

524    Asked by FaithDavidson in Python , Asked on May 14, 2021

I have app servers that I bootstrap together using Chef + some ad-hoc bash scripts. The problem is, when I want to run an update on one of these app servers, I get:

19:00:28: *** Please tell me who you are.
Run
  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

Do I really need to set this for doing a simple git pull origin master every time I update an app server? Is there any way to override this behaviour so it doesn't error out when name and email are not set?

Answered by Jason Sharp

 The best answer for please tell me who you are gitI found how the workflow should be:

1.
git init
2.
git config user.name "someone"
3.
git config user.email "someone@someplace.com"
4.
git add *
5.
git commit -m "some init msg"
If you swap 2,3 and 1, the config will not work at all.
I hope this helps!

Your Answer

Interviews

Parent Categories