参考链接:https://www.jianshu.com/p/935409ce4c9a
GitHook使用:
1. cd .git/hook
2.找到对应的文件,去掉sample后缀,在git commit 时该文件即可运行