Ignoring Files

Note

Draft placeholder — outline notes only; prose not yet written.

Points this section needs to cover:

  • .gitignore pattern rules in depth (globs, negation, directory patterns, double-asterisk)

  • Nested .gitignore files and their scoping

  • Global excludes: core.excludesFile and per-repo .git/info/exclude

  • Debugging why a file is ignored with git check-ignore --verbose

  • Ignoring build artifacts, editor droppings, and agent-generated files (cross-reference Ch 7, Git and Agents)