Interview Prep/Git & GitHub/Lost Work, HEAD and History Problems

`Author identity unknown *** Please tell me who you are.` and `fatal: unable to auto-detect email address`

BeginnerTroubleshootingLost Work, HEAD and History Problems
Answer

Likely causes → user.name and user.email are not set (new machine, container, CI runner).

Diagnose → git config --list --show-origin | grep user.

Fix →

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

For one repo, omit --global. In CI, set them before committing.

Prevent → Put identity into your dotfiles or CI bootstrap script.

All Git & GitHub questions Roadmap: Git & GitHub

More on Lost Work, HEAD and History Problems