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

前端 未结 2 1190
感动是毒
感动是毒 2021-01-06 13:40

I have tried to follow the instructions on how to use gitosis to manage my git projects. Other than one slight issue, I have installed

相关标签:
2条回答
  • 2021-01-06 14:27

    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).

    0 讨论(0)
  • 2021-01-06 14:28

    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
    
    0 讨论(0)
提交回复
热议问题