错误以下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