View Source mix precommit (Freecodecamp using Elixir v0.2.0)

Usage

mix precommit [--force]

Generates pre-commit git hook. Visit this link to know more about git hooks. Add option --force to generate a new precommit file. Note: these command is not to be ran inside iex, rather run this in your OS shell.

To view this via terminal:

mix help precommit

Example

mix precommit

# force
mix precommit --force