Is there a git
setting to avoid other devs to commit from a subfolder? I want to set this to always run husky commands when a commit is made
- Allow:
project/
- Dont allow:
project/subfolder/
CodePudding user response:
There is no such git setting.
You can customise your workflow by using git hooks. (client side hook like pre-commit-hooks or with server side hooks)