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怎么切换账号?
  • 热门搜索
    micro是什么意思 9月10日是什么节 无期徒刑是什么意思 单纯是什么意思 胎盘是什么 民宿是什么意思 紧急避孕药什么时候吃有效 69式是什么意思 什么是根管治疗 什么养胃