团队 Git 工作流程设置
我正在与一个大约 10 人的团队一起开发一个项目。我正在努力让每个人都有一个可以推送到每个人都可以从中获取的远程存储库。还将有一个受祝福的存储库,每个人(经理除外)都可以从中获取。
注意 - 一旦一切就绪,开发人员将使用 Eclipse 插件。
如何使用户可以从彼此的存储库中获取但不能推送到它们?当我将权限设置为 744 时,用户甚至无法从该存储库中提取数据。
任何帮助将不胜感激,这让我发疯!
I am working on a project with a group of around 10 people. I am trying to make it so each person has a remote repository they can push to in which everyone can fetch from. There will also be a blessed repository in which everyone (except manager) can fetch from.
Note - Developers will be using the Eclipse plugin once this is all in place.
How do I make it so users can fetch from each others repositories but not push to them? When I set permissions to 744 users are unable to even pull from that repository.
Any help would be greatly appreciated this is driving me nuts!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请看一下吉利特。 Gitosis 不再活跃发展。
https://github.com/sitaramc/gitolite
Please take a look at gitolite. Gitosis is no longer actively developed.
https://github.com/sitaramc/gitolite
最好拥有一个中央存储库,每个开发人员都有一个分支。这些分支有自己的权限集,因此只有拥有它的开发人员才可以写入它们。当然,每个开发人员都有自己的本地存储库,并且可以从远程存储库上的其他分支拉取。
您可以获得所需的相同功能,但只需一个遥控器而不是 10 个,更容易管理。
Gitolite 允许您设置具有如此精细的每个分支权限的存储库。
It may be better to have one central repository, with a branch for each dev. These branches have their permission set so they're writable only the developer who owns it. Of course each dev has it's own local repository and can pull from other branches on the remote repo.
You get the same functionality you want, but with one remote instead of 10, much easier to administrate.
Gitolite allows you to set a repository with such fine per-branch permission.