Github 限制访问 [英] Github restricting access

查看:23
本文介绍了Github 限制访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 github.

I am using github.

我想弄清楚如何限制我拥有的承包商的回购访问权限.

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

我有主要的 Rails 代码库,我还有一个承包商,他将为我做一些 css/ux 类型的工作.

I have the main rails codebase and i also have a contractor that will be doing some css/ux type work for me.

我想让承包商能够将代码签入 git hub 只到某些文件夹.

I want to give the contractor the ability to check in code to git hub only to certain folders.

理想情况下,我可以让他签入代码,然后将其部署到服务器,以便他可以看到更改.

Ideally, i can have him checkin code and then it can be deployed out to the server so that he can see the changes.

我不认为我可以通过限制特定 git 存储库中的访问来做到这一点,但也许有一种方法可以使用两个存储库并以这种方式限制访问.

I don't think i can do this via limiting access within a specific git repo, but maybe there is a way to use two repo's and restrict access that way.

任何帮助将不胜感激!

推荐答案

如果所有 css/ux 文件都在一个特定的子文件夹中,并且您希望他能够访问该目录中的所有内容,并且更进一步,您可以用 git 子模块来做.

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.

承包商对作为子模块的 repo 拥有推/拉权限,但对主 repo 没有提交权限.

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.

这篇关于Github 限制访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆