Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to turn this off permanently #142

Open
kevinburkenotion opened this issue Mar 29, 2019 · 3 comments
Open

Document how to turn this off permanently #142

kevinburkenotion opened this issue Mar 29, 2019 · 3 comments

Comments

@kevinburkenotion
Copy link

I don't ever want a library to modify my pre-commit hooks, even if a package maintainer adds this package. How can I disable this library from ever editing .git/hooks/pre-commit?

Husky for example has HUSKY_SKIP_INSTALL=true.

@magicznyleszek
Copy link

Similar problem happens when one branch has pre-commit installed, but another one doesn't have it. This package makes it impossible to commit anything on the other branch and simple npm install doesn't solve the issue.

@FlorianWendelborn
Copy link

As a workaround, when using the terminal you can usually just pass --no-verify to any git command to disable hooks. Still think this issue is important though as this doesn’t necessarily work for git GUIs

@magicznyleszek
Copy link

My workaround is to go to .git/hooks/ and delete the leftover pre-commit file :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants