Git hooks management

前端 未结 6 822
梦毁少年i
梦毁少年i 2020-12-14 02:22

We use custom-written Git hooks in our project.

Hooks are stored in a project\'s repository, and, when they do change, to get a new version each user must copy them

6条回答
  •  离开以前
    2020-12-14 02:26

    In Git 2.9, you can point to a custom hooks directory using the core.hooksPath configuration.

    Git 2.9 Release Notes - https://github.com/blog/2188-git-2-9-has-been-released

    Documentation mentioning core.hooksPath - https://git-scm.com/docs/githooks

    Note - this question is a possible duplicate of Can Git hook scripts be managed along with the repository?

提交回复
热议问题