Dec 15, 2008
I was doing stuff with etckeeper, and got the error fatal: empty ident <> not allowed. Having read many pages on the intermets that say git requires your username and email to be specified. I attempted to remedy this by setting my username and email via git-config.
git config --global user.name "FirstName LastName"However, after doing that, I was still getting the error. Turns out my environment had GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME set to empty strings, and the settings in your environment trump what ever is set in the .git/config and the ~/.gitconfig.
git config --global user.email "email@example.com"