4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Azure DevOps Server で Git の master ブランチへの直接コミットを禁止する

Last updated at Posted at 2022-02-20

概要

Azure DevOps Server で Git の master ブランチへの直接コミットを禁止する方法を記載します。

手順

1. 該当の Azure DevOps Server プロジェクトで「設定」-「Repos」-「リポジトリ」を選択します

image.png

2. 「すべてのリポジトリ」-「リポジトリ」から対象リポジトリを選択します

image.png

3. 「ポリシー」-「ブランチポリシー」で対象ブランチを選択するとブランチのポリシー設定画面が開きます

image.png

image.png

4. とりあえず直接コミットを制限したいのであれば、次の「マージの種類を制限する」にチェックし、マージの種類はすべてチェックONの状態とします

image.png

5. オプションとして、レビュー担当者を制限したい場合は、「レビュー担当者の最少数が必要です」にチェックします。人数は必要な数を設定します。

image.png

参考

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?