Hooks must be executable to run.
Section: Client-Side Hooks
Make hook executable
bash
bash
chmod +x .git/hooks/pre-commitLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Client-Side Hooks