git上传到一半最后报error:failed to push some refs to 'git@github.com:yourname/repositoryname.git'

今天上传代码到git上,上传一半卡住了,过了一会儿就报:

Counting objects: 52, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (48/48), done.
packet_write_wait: Connection to 192.30.253.113: Broken pipe
fatal: fatal: sha1 file '<stdout>' write error: Broken pipe
The remote end hung up unexpectedly

error:failed to push some refs to 'git@github.com:yourname/repositoryname.git'

网上查原因,有人说是因为本地库没有READEME.md文件,我排查了一下,貌似不是这个原因。

后来索性就多push了几次,最后成功了,可能原因是文件太大或者网络不稳定导致的问题。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值