863ce869 |
# `git-hook-nocommit`
A [Git hook][githooks] that prevents you from committing unintended content.
|
64f067f0 |
`git-hook-nocommit` is intended to be used as a [pre-commit][] hook and will
refuse to commit any files with content that matches (case insensitively) the
extended regex `$GIT_HOOK_NOCOMMIT_REGEX` (or `nocommit|nocheckin` if it is
empty) unless `$GIT_HOOK_NOCOMMIT_DISABLE` is non-empty.
|
863ce869 |
[githooks]: https://git-scm.com/docs/githooks
|
64f067f0 |
[pre-commit]: https://git-scm.com/docs/githooks#_pre_commit
|
5464c9fc |
## License
Licensed under the [ISC license][], see the [`LICENSE`](LICENSE) file.
[ISC license]: https://en.wikipedia.org/wiki/ISC_license
|