Author Identity Not Configured
Error message
Author identity unknown *** Please tell me who you are.
Quick summary
You have not configured your Git user.name and user.email, so Git cannot attribute commits to you.
Why this happens
Git was never configured with user.name and user.email
You are using Git on a new machine or fresh install
The global config was reset or overwritten
Minimal example
git commit -m "Initial" # Author identity unknowngit config --global user.name "Your Name"
git config --global user.email "[email protected]"
git commit -m "Initial" # now succeedsGit needs your name and email to attribute commits. Set them with git config --global, then commit.
How to diagnose
Check your config: git config user.name and git config user.email
Check the global config: git config --global --list
How to fix
Set your identity globally: git config --global user.name 'Your Name' && git config --global user.email '[email protected]'
Set it for just this repo: git config user.name 'Your Name' && git config user.email '[email protected]'
Retry the commit after configuring
How to prevent
Configure user.name and user.email when you first install Git
Use --global to set it once for all repositories