git报错the remote end hung up unexpectedly

 时间:2024-10-13 11:08:32

1、我们在使用git命令push代码的时候,会提示“the remote end hung up unexpectedly”,如图所示。

git报错the remote end hung up unexpectedly

2、造成的原因就是推送代码的大小超出了git默认的范围,可以调整git扦拖匆敉推送代码的最大值,找到项目中的.git文件夹,如图所示。

git报错the remote end hung up unexpectedly

3、如果找不到,可以点击该项目所在文件夹上面的“查看”,如图所示。

git报错the remote end hung up unexpectedly

4、然后把“隐藏的项目”前面的复选框勾选上,就可以看到隐藏的文件了,如图所示。

git报错the remote end hung up unexpectedly

5、找到.git文件夹之后,点击进入,找到其中的“config”文件,也就是git的配置文件,如图所示。

git报错the remote end hung up unexpectedly

6、然后在打开config配置文件,在最底下增加如下的配置:[http]postBuffer = 524288000如图所示。

git报错the remote end hung up unexpectedly

7、此时重新执行git push命令,代码就可以成功的推送到代码仓库,如图所示。

git报错the remote end hung up unexpectedly

8、以上就是git报错the remote end hung up unexpectedly的解决办法,希望可以帮到大家。

  • linux查找文件中的关键字
  • IDEA中怎么设置选项卡最多的打开数量
  • Java中String类型与BigDecimal类型互转
  • JS怎么截取字符串?
  • svn怎么切换账号?
  • 热门搜索
    推广普通话手抄报简单 尊师手抄报 5.1劳动节手抄报 清明节手抄报内容50字 民族团结手抄报资料 感恩手抄报资料 感谢老师的手抄报 庆祝国庆节手抄报 关于环境的手抄报 小学生手抄报制作大全