Git how to set the hook for all projects

I read on hooks at https://git-scm.com/book/en/v2/Customizing-Git-An-Example-Git-Enforced-Policy . Usually I use wip (work in progress) as my message about the transaction. I intend to go back and clean it, but sometimes I push changes using the wip message. I would like to prevent this.

However, instead of hooking only for one project, I would like this wip hook to be in all my projects. Is there any way to configure global interceptors.

+4
source share
1 answer

Check out here Git commit hooks - global settings that works thanks to this

+3
source

Source: https://habr.com/ru/post/1335118/


All Articles