Announcement

Collapse
No announcement yet.

Permission question

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Permission question

    Hellow,

    I am new to git and was hoping to get some help. I am hosting a local git server on CentOS 7 to host multiple repositories, each with multiple projects. The user terminals are Mac OS and will be utilizing SSH keys for login. How would I go about ensuring that different users have access to only the portions of each repository they are assigned? Thanks!

    DC

  • #2
    Git repositories are an "all or nothing" affair: if they can be cloned then you get the entire repository. "Gerrit Code Review" offers some more fine grained access control but, in general, does so by branch - not by sub-repository path. It's fair to say "think whole repository" (not "portions of repository").

    So, in general, you need to break up your code base into separate Git repositories based on who will need access to which pieces. This may require moving components around to match your security boundaries.

    Comment

    Working...
    X