*今晚突然hexo deplay跳出了一大片錯誤,但檢查了下網絡是沒有問題的,repository也是存在的,並且能正常與github通信,使用hexo server部署在本地也沒有問題,報錯如下:*

INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
[master bbb080a] Site updated: 2018-01-21 20:27:34
 7 files changed, 8 insertions(+), 8 deletions(-)
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
    at ChildProcess.<anonymous> (/Users/gaowei/gokwok.github.io/node_modules/hexo-util/lib/spawn.js:37:17)
    at ChildProcess.emit (events.js:159:13)
    at maybeClose (internal/child_process.js:943:16)
    at Socket.stream.socket.on (internal/child_process.js:363:11)
    at Socket.emit (events.js:159:13)
    at Pipe._handle.close [as _onclose] (net.js:568:12)

試了很多辦法都沒有成功,後來看見這篇博客,把hexo根目錄下的*.deploy_git*文件夾刪除,重新部署一遍,解決了問題