Can Git hook scripts be managed along with the repository?

前端 未结 11 1197
独厮守ぢ
独厮守ぢ 2020-11-22 14:00

We\'d like to make a few basic hook scripts that we can all share -- for things like pre-formatting commit messages. Git has hook scripts for that that are normally stored

11条回答
  •  暖寄归人
    2020-11-22 14:21

    If your project is a JavaScript project and you use npm as package manager you can use shared-git-hooks to enforce githooks on npm install.

提交回复
热议问题