git Bash执行hexo d报的一种错

git提交项目报unexpectedly

今天使用hexo d的时候出现以下错误:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10053
Everything up-to-date
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10053
Everything up-to-date
at ChildProcess.<anonymous> (E:\blog\node_modules\hexo-util\lib\spawn.js:37:17)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at ChildProcess.cp.emit (E:\blog\node_modules\cross-spawn\lib\enoent.js:40:29)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
FATAL fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10053
Everything up-to-date

stackoverflow上网友给出的解释是git缓冲区太小了,因此使用如下命令增加你的缓冲区:

1
git config http.postBuffer 524288000

假如使用了上边的命令又报如下命令:

1
fatal: not in a git directory

出现这个问题,是因为在本系统下没有找到一个.git这样的目录,进入你项目的根目录接着执行如下命令:

1
git init

然后再去执行增加缓冲区的命令,最后再去提交项目,应该就没问题了。

文章目录
  1. 1. git提交项目报unexpectedly