Search code examples
gitgitosis

using gitosis for GIT


I want user A and B to have clone, push and pull while user C can only do clone and pull (no push)

How do I do that?


Solution

  • git-dameon is used for public access. But you can use gitosis to grant read-only access to a particular group of users. For instance:

    [group thegood]
    writable = myRepo
    members = A B
    [group thebad]
    readonly = myRepo
    members = C
    [repo myRepo]
    description = "my project"
    

    See example.conf for more information.