| Category | git |
| Added on | 2026-04-07 |
| Source | source |
Use local repo’s .git/info/exclude
$ echo '.folder/' >> .git/info/exclude
Or use the Use global git ignore file. It needs to be set in the git config:
[core]
excludesFile = ~/.config/git/gitignore_global
Use it as a normal git ignore file.