gitignore tells Git which files to exclude — node_modules, .env, build artifacts and OS junk.
Patterns use globs: *.log, /dist, !keep.me. Root .gitignore applies repo-wide; nested files scope subprojects. Committed secrets in history need rotation even after adding gitignore.
Bootstrap repos with stack-specific templates. Tentaco Gitignore Generator merges Node, Python, Rust and IDE presets locally.