Skip to content

Misleading Documentation. prepare needs to be in pre-checkout, not pre-commit #1583

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

Open
1 task
azizoid opened this issue May 15, 2025 · 0 comments
Open
1 task

Comments

@azizoid
Copy link

azizoid commented May 15, 2025

this part of the documentation can mislead that prepare script is placed in the pre-commit script in husky.
when prepare needs to be in pre-checkout.

The init command simplifies setting up husky in a project. It creates a pre-commit script in .husky/ and updates the prepare script in package.json. Modifications can be made later to suit your workflow.

Troubleshoot

If you're migrating from husky 4, see:
https://typicode.github.io/husky/migrate-from-v4.html

Context
Please describe your issue and provide some context:

  • Core installation and documentation
  • pnpm exec husky init

Thank you!

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

1 participant