Home > OS >  Is possible to restrict "git" commands only in the root of the project?
Is possible to restrict "git" commands only in the root of the project?

Time:03-30

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)

  • Related