最佳答案
If you see the accepted answer in:
Aggregating and uglifying JavaScript in a Git pre-commit hook, you'll see that I had to do a chmod +x
on my pre-commit hook to get it to work.
Why is this not executable by Git by default?