I would like to enforce commit-msg git hook in each new new created repository in our Azure-Devops environment. Is there a way to configure Azure-Devops to create new repositories with.git/hooks that contains my commit-msg script?
For this issue, I am afraid this is currently not achievable in Azure devops. The hooks inside the .git
folder is in the client side, not in the server side. For each client the hooks can be different.
In addition, currently we have to make members run the git config core.hooksPath.githooks
command manually to enable custom hooks. We can't avoid a manual step here cause git hooks is designed to trigger actions at certain points per user instead of per team.
Here are some ticket you can refer to:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.