git报错the remote end hung up unexpectedly

git是大师常用的项目版本节制东西 , 谙练地利用git可以提高开辟效率 , 可是有时在利用git推送代码时 , 会提醒“the remote hung up unexpectedly”的问题 , 那么git推送代码提醒“the remote hung up unexpectedly”怎么解决呢 , 下面本文就介绍一下 。

需要这些哦
git
方式/
1我们在利用git号令push代码的时辰 , 会提醒“the remote 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 hung up unexpectedly】以上就是git报错the remote hung up unexpectedly的解决法子 , 但愿可以帮到大师 。

注重事项若是帮到了你 , 但愿可以给小编投票点赞!

以上内容就是git报错the remote hung up unexpectedly的内容啦 , 希望对你有所帮助哦!

    推荐阅读