typicode / husky

Git hooks made easy 🐶 woof!
https://typicode.github.io/husky
MIT License
31.69k stars 996 forks source link

Husky cannot execute git commands on Mac computers. #1427

Open Autumn-one opened 3 weeks ago

Autumn-one commented 3 weeks ago

I have a front-end project that uses husky to integrate git hooks to perform some automated operations. I execute some git commands in the Pre-commit and post-commit hooks, such as: git add . This works fine on windows, but on mac, the exact same configuration will fail when executing git commands.