Git 的 .gitconfig 文件配置汇总
http.postBuffer
在使用 git 推送项目时候出现 "fatal: The remote end hung up unexpectedly " 原因是推送的文件太大。
Connection reset by 140.82.113.4 fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly [41mFATAL[49m { err: Error: Spawn failed at ChildProcess.<anonymous> (E:\code\GitHub\Jueee\jueee-blog\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21) at ChildProcess.emit (events.js:315:20) at ChildProcess.cp.emit (E:\code\GitHub\Jueee\jueee-blog\node_modules\cross-spawn\lib\enoent.js:34:29) at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) { code: 128 } } Something's wrong. Maybe you can find the solution here: %s [4mhttps://hexo.io/docs/troubleshooting.html[24m
解决方案
在克隆 / 创建版本库生成的 .git 目录下面修改生成的 config 文件或者 .gitconfig
文件增加如下:
[http] postBuffer = 524288000
即修改提交缓存大小为 500M。
相关文章
未找到相关的 Issues 进行评论
请联系 @jueee 初始化创建