# `git-hook-nocommit` A [Git hook][githooks] that prevents you from committing unintended content. `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. [githooks]: https://git-scm.com/docs/githooks [pre-commit]: https://git-scm.com/docs/githooks#_pre_commit ## License Licensed under the [ISC license][], see the [`LICENSE`](LICENSE) file. [ISC license]: https://en.wikipedia.org/wiki/ISC_license