remotes

You can provide multiple remote configs if you want to share yours lefthook configurations across many projects. Lefthook will automatically download and merge configurations into your local lefthook.yml.

You can use extends but the paths must be relative to the remote repository root.

If you provide scripts in a remote config file, the scripts folder must also be in the root of the repository.

Note

The configuration from remotes will be merged to the local config using the following priority:

  1. Local main config (lefthook.yml)
  2. Remote configs (remotes)
  3. Local overrides (lefthook-local.yml)

This priority may be changed in the future. For convenience, if you use remotes, please don't configure any hooks.