Azure DevOps将git钩子上传到现有存储库 [英] Azure DevOps upload git hook to existing repository

查看:78
本文介绍了Azure DevOps将git钩子上传到现有存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将git钩子( .git \ hooks )上传到现有存储库?有什么方法可以访问Azure DevOps存储库中的 .git 目录?

Is it possible to upload a git hook (.git\hooks) to a existing repository? Is there any way to access the .git directory inside a Azure DevOps repo?

类似的东西:

https://server/collection/_git/project?path=%.git

推荐答案

不, .git 文件夹中的挂钩位于客户端,而不位于服务器端.对于每个客户,挂钩可能是不同的.

No, the hooks inside the .git folder is in the client side, not in the server side. for each client the hooks can be different.

有一个功能请求Git预先接收服务器级别的钩子.

There is a Feature Request to Git pre-receive hooks in the server level.

这篇关于Azure DevOps将git钩子上传到现有存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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