How to keep/maintain public and private code in the same repository? (at repository hostings)

二次信任 提交于 2019-12-03 20:44:59
VonC

which allows working in public and private branches in the same repository.

That doesn't seem compatible with how Git works: if you have access to a repo, you can clone all its content (including the branches).

A Git Hosting service like BitBucket or GitLab allows you to protect a branch (meaning you cannot push back). But you would still be able to see its content.
Even Gitolite doesn't prevent read-access at a branch level.

So two separate repos are still the best approach, with the repo A (kernel) declared as a submodule of repo B.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!