View Source mix precommit (Freecodecamp using Elixir v0.1.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.

Example:

mix precommit