mix releaser.install_hooks (releaser v0.0.4)

Copy Markdown View Source

Configures git to use the repository's .githooks/ directory instead of the local, per-clone .git/hooks/. After running once, hooks such as commit-msg (which validates Conventional Commits) apply automatically on every commit.

Usage

mix releaser.install_hooks

What it does

Runs git config core.hooksPath .githooks.

Uninstalling

git config --unset core.hooksPath