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

    xiaoxiao2021-03-25  94

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

    转载请注明原文地址: https://ju.6miu.com/read-15864.html

    最新回复(0)