Create global pre-commit hooks for entire team

前端 未结 2 1224
春和景丽
春和景丽 2020-12-17 18:47

How can I create a global pre-commit hook that is available for everyone in the team to use? Basically, I want that anytime someone clones the remote repository he should ge

2条回答
  •  臣服心动
    2020-12-17 19:11

    Luckily there is not a way to force hooks to people upon clone.

    If there was, you could write a post-receive hook with rm -rf / in it and wipe people's hard disk on pull

提交回复
热议问题