Help, I get “Please tell me who you are” when I commit
Every commit records an author, and Git does not know yours yet. Two config lines fix it for good.
git commit -m "Initial commit" Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'ada@laptop.(none)')
The fix
git config --global user.name "Ada Lovelace"Your name, as it should appear on every commit.
git config --global user.email "ada@example.com"Use the email of your GitHub or GitLab account, so your commits show up as yours.
git commit -m "Initial commit"Run the commit that failed again. It goes through now.
Ada Lovelace is an example. Replace it with your own.
Why this works
Git writes a name and an email into every commit, and refuses to guess them. Setting them with --global stores them once for every repository on this computer. Leave out --global to set a different identity for just one repository, for example a work email in a work project. Use the email your Git host knows, so your commits are linked to your account.