开发者

Giving access to parts of a github repository

I have a repository on Github for which I would like to give access to a freelancer.

I can't give them access to the entire codebase for security reasons, but I would like to be able to merge their changes from the sections that I do give them access to.

If I create a fork and remove the restricted files t开发者_C百科hen it still has the history available, so that doesn't really work.

What would be the best way to go about this?


If you want to remove the files from the history and publish it as-is, then consider using git filter-branch, which will let you narrow a project down to just some components of the original complete repository.

Putting the code you want them to see into a submodule would be the other way to go, and give them access to just the submodule.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜