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:
- Local main config (
lefthook.yml
) - Remote configs (
remotes
) - 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.