Egbert Lin's Blog

“Life is not a race, but a journey to be savoured each step of the way” by Brian Dyson

Error message: Please tell me who you are. Run git config --global...

Command line: "hexo d" and you got error message: Please tell me who you are.

Full error message info:

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 ...)
error: src refspec HEAD does not match any.
error: failed to push some refs to(your ...github.io)


When I ran "hexo d" command, the deployment was stuck! The reason was I updated my mac OS a few days age. Now, the system can't distinguish your indentity.
So, the solution can solve it:

Solution:

Input commands:

  1. git config --global user.email "email"
    //Your github email address(https://username.github.io)

  2. git config --global user.name "username"
    //(your nickname、github's username or anyone you name it) only English!