如何仅允许git上的分支文件夹

发布于 2025-01-23 13:53:32 字数 154 浏览 2 评论 0原文

如何在git上只允许一个文件夹?

“分支”或“用户”。

1)。用户(“分支”)不应看到不允许的文件夹或更改它们。

2)。它只能“推”到允许的文件夹。

2)。朋友,我该怎么做?

3)。在github或gitlab上!

how to allow only one folder on git?

"Branch" or "user".

1). the user ("BRANCH") should not see the disallowed folders or change them.

2). it should only be able to "PUSH" to the allowed folder.

2). how can I do this, friends?

3). on github or gitlab!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

街道布景 2025-01-30 13:53:33

您基本上需要一个单独的存储库,该存储库只能容纳该文件夹的内容。

如果您需要在较大的项目中包含该文件夹,则可以在较大的存储库中包含限制存储库作为子模块。

You would basically need one separate repository which would only hold the content of that folder.

If you need to include that folder in a bigger project, you can include the restricted repository in the bigger one as a submodule.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文