Delta compression using up to 12 threads
Compressing objects: 100% (55/55), done.
client_loop: send disconnect: Connection reset by peer
fatal: sha1 file '<stdout>' write error: Broken pipe/s
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
git config http.postBuffer 52428800 配置上传文件的大小 这个方法 已经失效了~~ 不行
后记>>> 当文件不超过传输限制 但是依然比较大的时候 还是有用的
设置的几个方法
1、编辑配置文件 修改
git config --edit --global 打开文件 添加以下配置
[http]
postBuffer = 524288000
2、直接命令配置
git config --global http.postBuffer 524288000
不想使用付费的解决办法 pdf文件可以拆分成若干份小文件 再上传
---------------------------------------------------------------------
以上方法失败 考虑安装 git lfs 文件管理来上传
1、在官网下载 安装 https://git-lfs.github.com/ 安装exe执行文件
2、git执行命令 git lfs install
3、执行 git lfs track “* .gif” #这里的 “ *.gif "就是你要上传的大文件的类型
4、vi .gitattributes
之后就可以添加 大文件了 记得 之前已经commit了的话 撤销一下 重新add commit
git add demo.gif
git commit -m "提交项目演示gif图"
git push