Github限制访问 [英] Github restricting access

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

问题描述



我试图弄清楚如何限制我的承包商的repo访问。



我有主导轨代码库,我也有一个承包商,为我做一些css / ux类型的工作。



我想给承包商能够检入代码以仅将Hub转到某些文件夹。



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



我不认为我可以通过在特定的git仓库中限制访问来实现这一点,但也许有办法使用两个仓库并限制访问。



如果所有的css / ux文件都在一个特定的子文件夹中,你希望他有权访问该目录中的所有内容,并进一步向下,你可以使用git子模块来完成这项工作。



承包商拥有推/拉权限repo是一个子模块,但是没有对主要repo的提交权限。

你也可以使用pull请求功能,并确保他只提交到他的文件夹中想要。


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 that will be doing some css/ux type work for me.

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.

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.

Any help would be appreciated!

解决方案

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.

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

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