Github restricting access

前端 未结 2 2085
暗喜
暗喜 2020-12-01 21:33

I am using github.

I\'m trying to figure out how to restrict repo access for a contractor i have.

I have the main rails codebase and i also have a contractor

2条回答
  •  天涯浪人
    2020-12-01 21:47

    I haven't done this, but seems like maybe you have 2 options:

    1) Grant the contractor pull access (but not push) to the repository. They can then fork it, do their work on their fork (probably within a branch?) and then send you pull requests and you would need to pull his/her changes in. Downside is that the contractor can't get code released to the server without your intervention (that could be an upside, depending).

    2) If their work is isolated to one subtree, use two repositories and make one a submodule of the other. You can then set the access control differently in the 2 repositories, but you get a unified view of the project.

提交回复
热议问题