Azure devops - server-side git hooks

后端 未结 3 1888
情话喂你
情话喂你 2021-01-21 01:53

How can we implement server-side hooks, or any similar solution, to restrict git push into git server?

For example, we want to disable push of commits containing *.class

3条回答
  •  心在旅途
    2021-01-21 02:31

    Use branch policies and set merge only with PR, after that direct push to the branch will be disabled, you can skip these policies for certain users (build users or admins)

提交回复
热议问题