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:
git initgit config user.name "someone"git config user.email "someone@someplace.com"git add *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.