Gitolite 无法将更改推送到我所做的回购

Gitolite cannot push changes to a repo I made

我已经在我的服务器上设置了 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)

请注意,我的git服务器是我在 .ssh/config:

中配置的服务器的别名
Host mygitserver
Hostname ec2-52-30-197-137.eu-west-1.compute.amazonaws.com
IdentityFile ~/id_rsa.pub
User git

你知道怎么推送webtags repo吗

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

您正在使用存储库的完整路径进行推送:/home/git/repositories/webtags.git
这是 "bypassing gitolite" issues.

之一

如果你想让 gitolite 引用它的托管 webtags.git 仓库,url 应该是:

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.