Azure devops-服务器端git挂钩 [英] Azure devops - server-side git hooks

查看:92
本文介绍了Azure devops-服务器端git挂钩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何实现服务器端挂钩或任何类似的解决方案,以将git push限制到git server中?

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

例如,我们要禁用推送包含* .class文件的提交.

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

推荐答案

我不认为Azure DevOps使用钩子.

I don't think Azure DevOps uses hooks.

您可以使用分支机构政策利用外部验证服务(据我所知,它使用Web挂钩).

You can use Branch Policies to make use of an external validation service (as I understand it this uses web hooks).

其他:

Additional: the status of this User Voice request indicates the above is the official answer.

但是也许最简单的情况是.gitignore和代码审查?

But maybe the simple case would be .gitignore and code reviews?

这篇关于Azure devops-服务器端git挂钩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆