简体   繁体   English

限制前端开发者的 git/code 访问

[英]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.

相关问题 GIT或SVN或......适用于前端开发人员 - GIT or SVN or… for front-end developers 将前端库提交到git-良好做法 - Committing front-end libraries to git - good practices 我们在每个 Git 存储库中都有前端项目和后端项目并共享一些功能/类,如何? - We have front-end project and backend project in each a Git repo and share some functions/classes, how? 在Visual Studio Code中限制对git master分支的访问 - Restrict access to git master branch in Visual Studio Code 一种限制Git分支访问的方法? - A way to restrict Git branch access? Git-使用名称空间并限制访问 - Git - Using namespaces and restrict access 部署Symfony2后端REST API和前端SPA javascript应用 - Deploying a Symfony2 back-end REST API and a front-end SPA javascript app 您如何提交一个父文件夹中的前端和后端项目? - How do you commit a front-end and back-end project that are in one single parent folder? 在与后端项目(API)分开的存储库中开发的前端Web项目 - Front-end web projects developed in separate repos from back-end project (API) 开发人员如何维护对非应用程序项目的前端依赖关系? - How do developers maintain front-end dependencies on non-app projects?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM