A way to restrict Git branch access?

后端 未结 9 588
天命终不由人
天命终不由人 2020-11-27 16:34

I have four branches in my git repository, which is managed using GitHub:

  • Production
  • Staging
  • Master
  • [person\'s name]-development
9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 16:56

    In Bitbucket version (Bitbucket v4.9.1) You can restrict changes by:

    1. Branch name
    2. Branch name pattern
    3. Branch name modelling

    Following actions can by restricted:

    1. Prevent all changes
    2. Prevent deletion
    3. Prevent rewirting history
    4. Prevent changes without a pull request

    Enter user that is an exception;

提交回复
热议问题