gitgithooks

Handle multiple pre-commit hooks


I have a need to use multiple pre-commit hook scripts. Not sure how to handle them. Should all of them be combined into one single large pre-commit script? If not, how to handle multiple pre-commit scripts?


Solution

  • Should all of them be combined into one single large pre-commit script ?

    Yes and no: you can only declare one pre-commit script, so this script should be in charge to:

    So: