Two Git ignore files nobody told me about
What happened
Git reads ignore patterns from .gitignore, .git/info/exclude and a global excludes file. The second one never gets committed, so your scratch files and agent plans can stop dirtying the working tree without anyone else seeing them.
Summary assembled by rule from the sources below