Ignore-rule field guides
The two opposite precedence models, the parent-directory trap and the syntax differences that real incidents come from.
- .gitignore order, re-includes, and the excluded-parent trapLast match wins, why a `!` re-include stops working under an excluded directory, and safer exception patterns, with examples.
- Pattern syntax: .gitignore versus GitHub Actions pathsHow `**`, `*`, `?` and `[]` differ between the two systems, and why paths and paths-ignore cannot be combined.
- The rsync include/exclude first-match trapRule order in rsync, directory pruning, and a filter order that survives backups, with broken and fixed examples.
- .dockerignore versus .gitignoreTwo files with the same syntax and different scope, plus patterns that keep the build context small and reproducible.
- Debugging checklist: from git check-ignore to rsync -nA five-step order that narrows “why is this committed / why is this missing from the deploy” in minutes, with the commands.
0 bytes of your input sent to a server (advertising and affiliate widgets excluded)