cloning error when checking out private github repo

前端 未结 2 1281
感动是毒
感动是毒 2020-12-22 08:42

I get the following error while cloning a private repo on my colleagues computer:

Cloning into xxx...
remote: Counting objects: 7112, done.
remote: Compressi         


        
相关标签:
2条回答
  • 2020-12-22 09:24

    In case anyone else ends up here with this problem, I discovered that the version of git that comes with Ubuntu 11.10 (version 1.7.5.4) seems to have problems cloning and pulling from repos created by later versions (my local machine was running git 1.7.9.5).

    Since sudo apt-get update will only pull down an old version of git, I had no choice but to build it manually. Fortunately, these instructions were great, and in no time I had git 1.8.0.2 running on the server, which pulled down the repo with no problems at all.

    I'm sure there are lots of other reasons why you might see this message, but upgrading git could be a painless first attempt before you start cloning, forking and deleting...

    0 讨论(0)
  • 2020-12-22 09:30

    The answer:

    I created a branch, (git checkout -b master2) then pushed the branch. Then i deleted master and renamed master2 to master.

    Finally worked.

    0 讨论(0)
提交回复
热议问题