git之解决fatal: the remote end hung up unexpectedly问题

背景

在做small插件化时,几个so插件太特么大,导致push的时候远程总是被挂起,从而push失败

解决方法

在push前,先执行这么一段命令,设置推送的缓存

git config http.postBuffer 5242880000

然后如果是新分支第一次push,可能用push origin branch_name不好使,需要换成下面的命令

git push --set-upstream origin branch_name

结语

good luck

猜你喜欢

转载自blog.csdn.net/qq_37475168/article/details/86543813
今日推荐