hexo deploy中报错:unable to auto-detect email address

问题描述

在git bush中使用hexo clean && hexo g && hexo d后未能成功部署到github上。

回到 git bush 中发现给出如下提示:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
*** 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 'HLZ@DESKTOP-0N6K07S.(none)')
Everything up-to-date
Branch 'master' set up to track remote branch 'master' from 'git@github.com:huanglizhu/huanglizhu.github.io.git'.
INFO Deploy done: git

提示分析

提示中出现了“unable to auto-detect email address”,也就是说他“无法自动检测电子邮件地址”。,并给出了解决方案:

1
2
git config --global user.email "you@example.com"
git config --global user.name "Your Name"

解决问题

解决步骤

结果

成功deploy到github