[英]Restrict git / code access to front-end developer
I want to add a front-end developer to my project, but don't want to give full access to my bitbucket repository as I want this person to only work on front-end related code (TWIG template engine, Twitter Bootstrap).我想在我的项目中添加一名前端开发人员,但不想授予对我的 bitbucket 存储库的完全访问权限,因为我希望此人只处理前端相关代码(TWIG 模板引擎、Twitter Bootstrap)。 Also, I do not want to have the risk of my full source code to be leaked.另外,我不希望我的完整源代码有泄露的风险。
How would I ideally solve this?我将如何理想地解决这个问题? What is the best way to only give fractional code access for front-end development (eg using bitbucket's git repository)?为前端开发(例如使用 bitbucket 的 git 存储库)提供部分代码访问权限的最佳方法是什么?
Would it make sense to export my template files (& fill them with dummy content) to have my developer work on those instead?导出我的模板文件(并用虚拟内容填充它们)以让我的开发人员处理这些文件是否有意义? If so, how?如果是这样,如何?
I don't know your project structure but in the most cases you need the complete project to run the code.我不知道您的项目结构,但在大多数情况下,您需要完整的项目来运行代码。 In that case it makes no sense to restrict access to only the "Frontend" section.在这种情况下,限制仅访问“前端”部分是没有意义的。
In Bitbucket you can only give access to the whole repository or rights for a single branch.在 Bitbucket 中,您只能授予对整个存储库的访问权限或单个分支的权限。
So if you have want to split your application to Frond- and Backend you have to create different repositories for all sections.因此,如果您想将应用程序拆分为前端和后端,则必须为所有部分创建不同的存储库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.