cloning error when checking out private github repo

社会主义新天地 提交于 2019-11-29 17:28:42

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.

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...

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!