Skip to content

Commit 37e0842

Browse files
committed
docs: add notice about SKIP_INSTALL_SIMPLE_GIT_HOOKS environment
1 parent 6149e83 commit 37e0842

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,15 @@ npm uninstall simple-git-hooks
162162

163163
### I want to skip git hooks!
164164

165-
You should use `--no-verify` option
165+
If you need to bypass install hooks at all, for example on CI, you can use `SKIP_INSTALL_SIMPLE_GIT_HOOKS` environment variable at the first place.
166+
167+
```sh
168+
export SKIP_INSTALL_SIMPLE_GIT_HOOKS=1
169+
170+
npm install simple-git-hooks --save-dev
171+
```
172+
173+
Or if you only need to bypass hooks for a single git operation, you should use `--no-verify` option
166174

167175
```sh
168176
git commit -m "commit message" --no-verify # -n for shorthand

0 commit comments

Comments
 (0)