踩坑教训

Git:解决报错:fatal: The remote end hung up unexpectedly

By karp 16555 Views 2 MIN READ 0 Comments

2024-09-05T07:47:26.png

问题描述 : Git:解决报错:fatal: The remote end hung up unexpectedly

问题原因 : 推送的文件太大.

解决方法 :

1. 修改设置 git config 文件的 postBuffer的大小 . (设置为500MB)


git config --local http.postBuffer 524288000

注: --local 选项指定这个设置只对当前仓库生效.

2. 或者直接修改本地仓库的 .config 文件

$ cd .git
$ vim config

增加下面两行内容

[http]
    postBuffer = 524288000
Fatal: the remote end hung up unexpectedly

本文由 karp 原创

采用 CC BY-NC-SA 4.0 协议进行许可

转载请注明出处:https://www.ikarp.top/index.php/archives/703.html

标签: git

0 评论