Git: “please tell me who you are” error

前端 未结 21 1453
傲寒
傲寒 2020-11-30 16:21

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:

相关标签:
21条回答
  • 2020-11-30 16:55

    I had this as a faulty error message:
    git pull worked fine on the cmd line
    git pull failed in a Perl CGI process (a webhook to auto-deploy from github) with the above error.

    Doing a git status identified a clashing file. Sorting it fixed the problem.

    Problem reoccurred later when I changed some config settings.

    This time, setting $HOME and $USER env vars fixed it (are unset by default in a CGI process)

    0 讨论(0)
  • 2020-11-30 16:58

    That’s a typo. You’ve accidently set "user.mail" with no "e". Fix it by setting "user.email" in the global configuration with

    git config --global user.email "you@example.com"

    Found solution here

    https://stackoverflow.com/a/14662703

    0 讨论(0)
  • 2020-11-30 16:59

    it works for me, try This.. you need to configure your terminal with remote access.

         git config --global user.name "abc"
         git config --global user.email "abc@example.com"
    
    0 讨论(0)
提交回复
热议问题