GIT support for branch based user authorization - Best Practices or Tools?

后端 未结 2 615
感情败类
感情败类 2020-12-08 23:06

For a product based GIT repository, wherein there are branches for maintenance, testing as well as future development, how do I control user access to these branches. By acc

2条回答
  •  -上瘾入骨i
    2020-12-08 23:44

    Put a server side commit hook that denies commits to whatever branches you need read-only or based on who the committer is.

    For merging request work flow, we use a local install of Gitorious and submit merge requests through its web interface and restrict the main-line repository to your integration team, everyone else would work from server side clones and then push merge requests back to the main-line repository.

    With Gitorious you don't need the server side hooks, you just need to restrict access to the main-line repository to only the people you want to be committer. Much simpler and easier to maintain.

提交回复
热议问题