Why I can't add new repositories using gitosis?

前端 未结 3 646
夕颜
夕颜 2021-02-10 15:02

I set up gitosis but even when i can clone, pull and push to the gitosis-admin repo, i can\'t create new ones.

According to every doc i read, to create a new repo one ha

3条回答
  •  一向
    一向 (楼主)
    2021-02-10 15:42

    I was having this problem and I found out if I change the way I access the repository, it worked. After you have created the group writeable.

    # Go to the directory you want to start your project in.
    git init; git add .
    git commit -m 'initial commit'
    git remote add origin gitosis@[server]:gitosis-test.git
    git push --all
    

    So to recap before I was doing gitosis@[server]/gitosis-test.git and that was failing. I swapped the semicolon and it worked.

    Props on the loglevel = DEBUG It helped a lot to find out what was happening.

提交回复
热议问题