我已經安裝了gitolite(本地現在,試驗),它似乎工作,除了新的倉庫沒有跟蹤git克隆後的默認遠程。如果我沒有記錯的話,當我從github.com克隆一個倉庫時,它已經能夠推拉。gitolite:新庫的默認遠程工具
這裏是我的嘗試:
$ git clone [email protected]:sandbox
Cloning into sandbox...
warning: You appear to have cloned an empty repository.
$ echo "A" > README
$ git add README
$ git commit README -m 'test'
$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '[email protected]:sandbox'
當我試圖把明確的一切工作:
$ git push origin master
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (6/6), 426 bytes, done.
Total 6 (delta 0), reused 0 (delta 0)
To [email protected]:sandbox
* [new branch] master -> master
是這個額外步驟真正需要的?可以默認設置?在github上,它不是?
謝謝
據我所知,gitosis不推薦用於新的存儲庫/服務器。更好地使用gitolite。 –
糟糕,我實際上使用的是gitolite,但在這個問題上犯了一個錯誤。現在已修復。 – stivlo