【发布时间】:2016-05-14 19:03:48
【问题描述】:
我已设法在我的服务器上设置 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 repo。
注意:两个 pc_magas git-admin 都有我的密钥。
【问题讨论】: