Git: “please tell me who you are” error

前端 未结 21 1676
傲寒
傲寒 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 spent lots of hours on it when I call PHP script to init and commit to git. And I found the work flow should be as:

    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 [23] and 1, the config will not work at all.

    I wish this will do some help.

提交回复
热议问题