hexo d *** Please tell me who you are. Run git config --global user.email "[email protected]" gi

*** Please tell me who you are.

Run

git config --global user.email "[email protected]"
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 ‘��@Swift-64.(none)’)
error: src refspec HEAD does not match any.
error: failed to push some refs to


没事想搞个hexo + github pages 玩,结果不玩不知道,一玩坑不断,
上面是其中一个。
如图:
hexo d *** Please tell me who you are. Run git config --global user.email


解决办法:
找到配置hexo blog的文件夹,在 .git目录下打开配置文件config,添加,

[user]
email = your email 
name = your name

hexo d *** Please tell me who you are. Run git config --global user.email
然后再从新添加git里的邮箱和名字,重新提交,注意空格

你可能感兴趣的:(踩坑)