我已经安装了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