您的位置:首页 > 其它

记录hexo d 时发生的一次异常错误

2018-01-05 17:02 357 查看
我们在输入 hexo d 后,显示如下

$ hexo d
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
warning: LF will be replaced by CRLF in 2018/01/05/hello-world/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2018/01/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2018/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/style.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons                                                                                                                                  .css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons                                                                                                                                  .js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-media.j                                                                                                                                  s.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs.                                                                                                                                  css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs.                                                                                                                                  js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.pack.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in js/script.js.
The file will have its original line endings in your working directory.

*** 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 'Alex@DESKTOP-I33C9K5.(none)')
error: src refspec HEAD does not match any.
error: failed to push some refs to 'git@github.com:alexsaurora/alexsaurora.githu                                                                                                                                  b.io.git'
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/do                                                                                                                                  cs/troubleshooting.html
Error: error: src refspec HEAD does not match any.
error: failed to push some refs to 'git@github.com:alexsaurora/alexsaurora.githu                                                                                                                                  b.io.git'

at ChildProcess.<anonymous> (D:\Hexo\node_modules\hexo-util\lib\spawn.js:37:                                                                                                                                  17)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at ChildProcess.cp.emit (D:\Hexo\node_modules\cross-spawn\lib\enoent.js:40:2                                                                                                                                  9)
at maybeClose (internal/child_process.js:920:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)


这是要我们输入用户名和邮箱,

4000

git config –global user.email “you@example.com”

git config –global user.name “Your Name”

双引号中间填入自己的就好了,

此处要注意,是email,而不是mail!!!!

一时粗心,导致查来查去怎么也改不过来,大家一定要小心啊!!!

此时再输入hexo d 就OK 了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  异常 hexo hexo-d
相关文章推荐