.gitignore pour Lefthook
13 règles d’exclusion pour Lefthook, prêtes à copier dans votre dépôt.
Gestionnaire de hooks Git
Le .gitignore complet pour Lefthook
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:31:33 UTC
# Technologies: Lefthook
### Lefthook ###
/.lefthook-local.json
/.lefthook-local.toml
/.lefthook-local.yaml
/.lefthook-local.yml
/lefthook-local.json
/lefthook-local.toml
/lefthook-local.yaml
/lefthook-local.yml
/.config/lefthook-local.json
/.config/lefthook-local.toml
/.config/lefthook-local.yaml
/.config/lefthook-local.yml
/.lefthook-local/
Ce que ces règles Lefthook ignorent vraiment
Chaque motif ci-dessous, et pourquoi il a sa place dans votre .gitignore.
General
| Motif | Ce qu’il ignore |
|---|---|
/.lefthook-local.json |
https://lefthook.dev/configuration/#config-file-name |
/.lefthook-local.toml |
General |
/.lefthook-local.yaml |
General |
/.lefthook-local.yml |
General |
/lefthook-local.json |
General |
/lefthook-local.toml |
General |
/lefthook-local.yaml |
General |
/lefthook-local.yml |
General |
/.config/lefthook-local.json |
General |
/.config/lefthook-local.toml |
General |
/.config/lefthook-local.yaml |
General |
/.config/lefthook-local.yml |
General |
/.lefthook-local/ |
https://lefthook.dev/configuration/source_dir_local.html |
Comment utiliser ce .gitignore pour Lefthook
- Copiez les règles Lefthook ci-dessus, ou téléchargez directement le fichier.
- Créez un fichier nommé .gitignore à la racine de votre dépôt Git et collez-y les règles.
- Si certains de ces fichiers sont déjà suivis, lancez git rm -r --cached . puis recommitez — Git n’applique les règles d’exclusion qu’aux fichiers non suivis.
- Commitez le .gitignore pour que toute l’équipe partage les mêmes règles.