Skip to content

Document how to turn this off permanently #142

Description

@kevinburkenotion

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.

Activity

  1. magicznyleszek commented on Mar 29, 2022

    @magicznyleszek

    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.

  2. FlorianWendelborn commented on Mar 29, 2022

    @FlorianWendelborn

    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

  3. magicznyleszek commented on Mar 29, 2022

    @magicznyleszek

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions