toplenboren / simple-git-hooks

A simple git hooks manager for small projects
MIT License
1.34k stars 43 forks source link

Skip hooks installation when env variable is set #87

Closed pantosha closed 8 months ago

pantosha commented 1 year ago

It's useful to skip git hooks installation when environment variable is set, e.g. SIMPLE_GIT_HOOKS=0

Similar functionality in husky: https://typicode.github.io/husky/guide.html#bypass-hooks

toplenboren commented 1 year ago

Hi, yep, this would be a nice feature to implement. However, if im not mistaken, you can omit from using git hooks using --no-verify option when you run git commit

7rulnik commented 1 year ago

Yeah, you can commit via CLI, but in GUI (like Fork) usually it's not really possible

jochemkeller commented 8 months ago

I think this issue can be closed once #96 is made available as a new NPM version 🙏

toplenboren commented 8 months ago

Should be live in 2.10.0. Thanks @pantosha for the issue and big thanks to the @bhanuprasadcherukuvada for the PR #96

https://www.npmjs.com/package/simple-git-hooks