简体   繁体   English

Azure DevOps 将 git hook 上传到现有存储库

[英]Azure DevOps upload git hook to existing repository

Is it possible to upload a git hook ( .git\\hooks ) to a existing repository?是否可以将 git hook ( .git\\hooks ) 上传到现有存储库? Is there any way to access the .git directory inside a Azure DevOps repo?有没有办法访问 Azure DevOps 存储库中的.git目录?

Something like:就像是:

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

No, the hooks inside the .git folder is in the client side, not in the server side.不, .git文件夹内的钩子位于客户端,而不是服务器端。 for each client the hooks can be different.对于每个客户端,钩子可以不同。

There is a Feature Request to Git pre-receive hooks in the server level.在服务器级别有一个Feature Request to Git pre-receive hooks。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM