Github restricting access

前端 未结 2 2071
暗喜
暗喜 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:33

    If all of the css/ux files are within a particular subfolder, and you want him to have access to everything in that directory, and further down, you could do it with git submodules.

    The contractor would have push/pull rights to the repo that is a submodule, but no commit rights on the main repo.

    You could also just use the pull request feature and make sure that he only commits to the folder he wants.

提交回复
热议问题