The remote end hung up unexpectedly while git cloning

后端 未结 30 3053
旧时难觅i
旧时难觅i 2020-11-22 09:02

My git client repeatedly fails with the following error after trying to clone the repository for some time.

What could be the issue here?

30条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 09:22

    It might be because of commits' size that are being pushed.. Breakdown the number of commits by the following steps:

    git log -5
    

    See the last 5 commits and you would know which ones are not pushed to remote. Select a commit id and push all commits up to that id:

    git push  :
    

    NOTE: I just checked my commit which could have the biggest size; first pushed up till then. The trick worked.!!

提交回复
热议问题