There are always mistakes like this when you use hexo to build a blog.

build a blog with hexo hexo s you can see the web page locally
but hexo d Synchronize always gets stuck or goes wrong from Synchronize to github
what"s the problem?

$hexo d
INFO Deploying: git
INFO Clearing. Deploy _ git folder.
INFO Copying files from public folder.
INFO Copying files from extend dirs.
warning: LF will be replaced by CRLF in 2018 Helim
warning: LF will be replaced by CRLF in archives/2018/07/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2018/index.html.
The file Will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/fonts/fontawesome-webfont.svg.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/style.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons .css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons .js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-media.j S.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs. Css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs. Js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.pack.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in js/script. Js.
The file will have its original line endings in your working directory.
On branch master
nothing to commit, Working tree clean

Connection reset by 13.250.177.223 port 22
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
FATAL Something"s wrong. Maybe you can find the solution here: http://hexo.io/docs/troublesh.
Error: Connection reset by 13.250.177.223 port 22
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

at ChildProcess.<anonymous> (C:\Users\LLLLogan\Desktop\Blog\node_modules\hexo-util\lib\spawn.js:37:17)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at ChildProcess.cp.emit (C:\Users\LLLLogan\Desktop\Blog\node_modules\cross-spawn\lib\enoent.js:40:29)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:557:12)

problem description

build a blog with hexo hexo s you can see the web page locally
but hexo d Synchronize always gets stuck or goes wrong from Synchronize to github
what"s the problem?

the platform version of the problem and what methods you have tried

configuration file I am sure there is no misconfiguration

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?


I met it for the whole two days, but I couldn't find a solution. I'm looking forward to a perfect solution


issue it after executing the following statement

git config --global http.postBuffer 524288000

just encountered the same problem:

  [master 852bb8c] Site updated: 2018-10-20 02:04:33
  67 files changed, 536 insertions(+), 536 deletions(-)
  Connection reset by 192.30.253.113 port 22
  fatal: sha1 file '<stdout>' write error: Broken pipe
  fatal: The remote end hung up unexpectedly
  fatal: The remote end hung up unexpectedly
  FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
  Error: Connection reset by 192.30.253.113 port 22
  fatal: sha1 file '<stdout>' write error: Broken pipe
  fatal: The remote end hung up unexpectedly
  fatal: The remote end hung up unexpectedly

      at ChildProcess.<anonymous> (D:\blog\node_modules\hexo-util\lib\spawn.js:37:17)
      at emitTwo (events.js:126:13)
      at ChildProcess.emit (events.js:214:7)
      at ChildProcess.cp.emit (D:\blog\node_modules\cross-spawn\lib\enoent.js:40:29)
      at maybeClose (internal/child_process.js:925:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

I tried ssh-o ServerAliveInterval=60 mzwua@192.30.253.112 (it only works once, then I'll hang up if I meet you later! )

resume 2. Some netizens said: delete the .deploy _ git file and redeploy (I tried it or hung up! )

telephone hotspot 3. Switch to mobile phone hotspot (unexpectedly, Why?? Firewall? )


I found that I switched the network and uploaded it

.
Menu