Tech article

Two Git ignore files nobody told me about

No preview is available. Read the original article for the full story.

Hacker News | Sep 23, 2026 | faithraven

Automated excerpt

Because until very recently, the only way I knew to ignore a file in git was to add it to . gitignore. One catch: in a linked git worktree, . git is a file rather than a directory, so the path above won't work. The exclude file lives in the main repository's . git/info/exclude and covers every worktree.

Selected automatically from source text; not independently written or fact-checked. Read the original for full context.

Read the original article

More tech news