Skip to content

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

✗ Broken code
git commit -m "Initial"  # Author identity unknown
✓ Fixed code
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git commit -m "Initial"  # now succeeds

Git 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 'you@example.com'

  • Set it for just this repo: git config user.name 'Your Name' && git config user.email 'you@example.com'

  • 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

Related Resources

Related Glossary

Related Lessons

← Back to language