如果你看到接受的答案: 在git pre-commit钩子中聚合和uglifying javascript,你会看到我必须chmod +x在我的预提交钩子上做一个让它工作.
chmod +x
为什么Git默认不能执行此操作?
git githooks
git ×1
githooks ×1