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

来源:互联网 发布:iwatch软件 编辑:程序博客网 时间:2024/05/21 11:30

今天上传代码到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了几次,最后成功了,可能原因是文件太大或者网络不稳定导致的问题。

0 0
原创粉丝点击