我是 gitolite 的新手。我正在尝试用 gitolite 进行一个非常简单的测试。我已经设置了名为“test_repo”的存储库。请注意,除了下面所述之外,我没有修改任何其他内容。我可以在 gitweb 中看到这个仓库。这是仓库配置
repo test_repo
RW+ = @all
现在我想克隆这个仓库。我可以通过 LDAP 访问服务器。根据我对@all的理解,它应该允许我这样做。
当我发出
git clone git@myserver:repositories/test_repo.git
#I know this is wrong. But I just wanted to test as the above did not work
or
git clone git@myserver:test_repo.git
它要求输入密码。我已遵循本指南http://sharadchhetri.com/2013/05/31/how-to-create-own-git-server-with-gitolite-and-gitweb-in-ubuntu/ http://sharadchhetri.com/2013/05/31/how-to-create-own-git-server-with-gitolite-and-gitweb-in-ubuntu/,它不为 git 用户设置密码
当我发出
git clone myname@myserver:test_repo.git
我收到以下错误
fatal: 'test_repo.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我也厌倦了克隆默认存储库“test_repo.git”。但我遇到了同样的错误。
我也厌倦了这个
git clone myname@myserver:/home/git/repositories/testing.git
然后克隆就可以工作了。但当我这样做时git push -u origin master
我收到一些修改过的文件
error: insufficient permission for adding an object to repository database ./objects
fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
! [remote rejected] master -> master (n/a (unpacker error))
Note: 我没有在conf文件中添加任何用户
任何帮助表示赞赏。