# `mix git_hoox.install`
[🔗](https://github.com/sgerrand/git_hoox/blob/v0.5.0/lib/mix/tasks/git_hoox.install.ex#L1)

Install git_hoox shims.

    mix git_hoox.install              # refuse if user hook exists
    mix git_hoox.install --force      # backup + overwrite shims (and config)
    mix git_hoox.install --dry-run    # plan only, write nothing
    mix git_hoox.install --scaffold   # also write a starter .git_hoox.exs

Detects `core.hooksPath` and worktrees via `git rev-parse --git-path hooks`.

When `.git_hoox.exs` sets `auto_deps_get: true`, each shim first runs
`mix deps.get` if the lock is out of date, so a stale `mix.lock` no longer
fails the hook with "Unchecked dependencies". Re-run this task after
changing the flag to regenerate the shims.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
