Cant commit due to error please help


#1

This is the exact error I get when I try to commit I know it means to log in but where?
*** 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 ‘censored for safety.(none)’)


#2

It depends on your setup (e.g. what operating system) but these help articles details setting up your user.email and user.name for Git:

https://help.github.com/articles/setting-your-username-in-git/
https://help.github.com/articles/setting-your-commit-email-address-in-git/

For example, if you’re on macOS, you can open the Terminal program and enter the commands mentioned in the error message. If you’re on Windows, you can install Git Bash and use that program to set this information.