Gitolite不能推动改变我做的回购

时间:2016-05-14 19:03:49

标签: git ubuntu gitolite

我已经设法在我的服务器上安装了gitolite,我想把我的应用程序推入其中。所以我正在做:

git push amazon master

我收到以下回复:

W access for home/git/repositories/webtags DENIED to git-admin
(Or there may be no repository at the given path. Did you spell it correctly?)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我的gitolite配置

repo    gitolite-admin
        RW+     =   git-admin

repo    testing
        RW+     =   @all

repo webtags
    RW+ = pc_magas git-admin

我的遥控器是:

amazon  mygitserver:/home/git/repositories/webtags.git (fetch)
amazon  mygitserver:/home/git/repositories/webtags.git (push)
openshift   ssh://57364a4c2d5271f0f500007b@webtag-pcmagas.rhcloud.com/~/git/webtag.git/ (fetch)
openshift   ssh://57364a4c2d5271f0f500007b@webtag-pcmagas.rhcloud.com/~/git/webtag.git/ (push)
origin  git@github.com:pc-magas/webtags.git (fetch)
origin  git@github.com:pc-magas/webtags.git (push)

请注意,mygitserver是在.ssh / config中配置的服务器的别名:

Host mygitserver
Hostname ec2-52-30-197-137.eu-west-1.compute.amazonaws.com
IdentityFile ~/id_rsa.pub
User git

你知道如何推动webtags回购。

注意:两个pc_magas git-admin都有我的密钥。

1 个答案:

答案 0 :(得分:1)

您正在推动使用回购的完整路径:/home/git/repositories/webtags.git
这是"bypassing gitolite" issues之一。

如果您希望gitolite引用其托管的webtags.git repo,则网址应为:

amazon  mygitserver:webtags.git (fetch)
amazon  mygitserver:webtags.git (push)

含义:

cd /path/to/my/repo
git set-url amazon mygitserver:webtags.git

然后gitolite将寻找实际的/home/git/repositories/webtags.git