hexo 的錯誤


錯誤如下

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM