錯誤如下
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,再次發布,不過這樣做會導致之前的提交記錄丟失。
