Git remote/shared pre-commit hook

后端 未结 6 1371
失恋的感觉
失恋的感觉 2020-11-28 06:42

With a one official repository as the remote, and multiple local repositories cloned from it, can a pre-commit hook be scripted on that main repository and be enforced on al

6条回答
  •  独厮守ぢ
    2020-11-28 07:37

    Assuming you have source code in your git repo that has a build system associated with it, you could configure the build system to set up the pre-commit hook, i.e. by moving or linking a pre-commit hook that ~is versioned.

    I have not tried this yet. I came here while googling for a better solution.

提交回复
热议问题