简体   繁体   English

团队Git工作流设置

[英]Team Git Workflow Setup

I am working on a project with a group of around 10 people. 我正在与一个约10人的团队合作。 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. 注 - 一旦完成,开发人员将使用Eclipse插件。

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. 当我将权限设置为744时,用户甚至无法从该存储库中提取。

Any help would be greatly appreciated this is driving me nuts! 任何帮助将不胜感激,这让我疯了!

Please take a look at gitolite. 请看一下gitolite。 Gitosis is no longer actively developed. Gitosis不再积极发展。

https://github.com/sitaramc/gitolite https://github.com/sitaramc/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. 您将获得所需的相同功能,但是使用一个遥控器而不是10个遥控器,则更易于管理。

Gitolite allows you to set a repository with such fine per-branch permission. Gitolite允许您设置具有如此精细的每分支权限的存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM