gitosis + git error: fatal: '/home/git/repositories/idea-generator.git' does not appear to be a git repository

谁说胖子不能爱 提交于 2019-11-30 23:28:50

If you're able to fetch/push repos with full paths (/home/git/repositories/idea-generator.git), then you're bypassing gitosis completely, including any access checks it may impose. You may as well not be using gitosis, for all the good it is doing you.

That is also the reason that a push did not auto-create the repo for you -- gitosis was bypassed, so no auto-create.

Proper use of gitosis means your URLs will look like git@Frankenstein:gitosis-admin.git (since you said you managed to clone this successfully).

I just ran the tutorial successfully. My server is 'valkyrie' running ubuntu 10.4 and my client, 'wraith' is OS X 10.6.1. Make sure you use your client rsa/dsa key and not your server's. Here's my example:

echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIw...== mwilliamson@wraith" | sudo -H -u git gitosis-init
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!