我想從github拉回購,並將其推到我正在運行的gitlab服務器上的私人回購。克隆github回購到私人gitlab回購
我克隆GitHub的回購,以我的本地機器
git clone https://github.com/somepage/someproject
在這一點上我添加了一個新的遠程(我gitlab)
git remote add gitlab https://mygitlabserver/mypage/myproject
然後我就(在這種情況下,只有在githab分支開發)
git push gitlab develop
現在我遇到了問題,當我嘗試從我的gitlab回購克隆:
git clone https://mygitlabserver/mypage/myproject
Cloning into 'myproject'...
remote: Counting objects: 140, done.
remote: Compressing objects: 100% (85/85), done.
remote: Total 140 (delta 40), reused 140 (delta 40)
Receiving objects: 100% (140/140), 2.75 MiB | 1.85 MiB/s, done.
Resolving deltas: 100% (40/40), done.
Checking connectivity... done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.
不是100%這個警告是關於什麼的,但我相信它不好。如果我列出該克隆目錄的內容爲空。
我做錯了什麼?
http://stackoverflow.com/a/15631690/6309也可以提供幫助。 – VonC 2015-04-03 14:20:38