Can I enforce a merge-only branch in git?

前端 未结 4 2161
攒了一身酷
攒了一身酷 2021-01-01 15:11

I\'m using git, and I\'m setting up the following branches to support my workflow:

  • release, which only contains released software,
  • testing, which cont
4条回答
  •  误落风尘
    2021-01-01 15:58

    More recently, a framework made for authorization enforcement, gitolite, can help putting in place all kinds of policies, for instance to allow only the tester to merge in the "Testing" branch.

    In addition, gitolite proposes with VREFs (explained in "Gitolite Update Hook exclude a repository") the possibility to define many "update hooks" which will control the commits being pushed to the repo managed by gitolite.

    But all those controls are for a "central" repo, not for all the downstream repos cloned on the various developers' workstations.

提交回复
热议问题