How to run git hook script on windows, using repository through filesystem?

此生再无相见时 提交于 2019-11-30 01:52:32

Git hook is a script you can run before (pre-commit) or after (post-commit) a commit is made. There can be more than one of such a script.

They are placed in a specified folder. Any git repository has a .git/hooks folder with file(s) containing hook scripts.

You need to answer Do you have the event you are testing bind to a hook present in your's git repository?

Check also this on how git executes hooks in Windows:

Tips for using hooks:

Some more git hooks reading:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!