hexo 的錯誤

錯誤以下html

Connection to github.com closed by remote host.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'git@github.com:xxxxx/xxxxx.github.io.git'
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Spawn failed
    at ChildProcess.<anonymous> (/home/pi/blog/node_modules/_hexo-util@0.6.3@hexo-util/lib/spawn.js:52:19)
    at ChildProcess.emit (events.js:182:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)

這個錯誤是由於本地的博客版本與遠程的版本不一致,解決方法是刪除博客目錄下的.deploy_git文件夾,而後克隆遠程(也就是將要發佈的地址)的倉庫到博客目錄裏面,而後更名字爲.deploy_git,另一個不那麼繞的辦法是把遠端倉庫刪除,刪除本地的.deploy_git,再次發佈,不過這樣作會致使以前的提交記錄丟失。node

相關文章
相關標籤/搜索