.gitignore for Lefthook
13 ignore rules for Lefthook, ready to copy into your repository.
Git hooks manager
The complete .gitignore for 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/
What these Lefthook rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
General
| Pattern | What it ignores |
|---|---|
/.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 |
How to use this .gitignore for Lefthook
- Copy the Lefthook rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.