gitignore / glob / tracked review

Separate gitignore globs, exceptions, and tracked state

Review glob meaning, negation patterns, already tracked files, and directory scope separately. Prepare a correction proposal without writing to the repository.

Four ignore boundaries

Pattern evaluation and tracked state are different. Adding an ignore rule does not automatically untrack an existing file.

*.log = glob exclusion; negation = include exception; tracked.txt = tracked remains; tmp/ = directory scope
CategoryReview
glob-exclusionCheck that a glob such as *.log excludes only the intended scope.
negation-exceptionCheck that a negation exception matches parent exclusions and order.
tracked-fileAn already tracked file stays tracked; a separate approved action is required.
directory-onlyA trailing slash such as tmp/ is reviewed as directory scope.

Safe correction requests

  1. Record the pattern and target path.
  2. Choose glob, negation, tracked, or directory.
  3. Separate expected results from tracked differences.
  4. Apply a proposal only after human review.

This guide does not write .gitignore or run git commands. It does not upload a repository; use synthetic cases only.

Review cases

casedecisionrequest
glob-exclusionexcludeConfirm scope before changing the glob.
negation-exceptioninclude-exceptionConfirm exception order and parent path.
tracked-filetracked-remainsDo not confuse ignore rules with untracking.
directory-onlydirectory-scopeConfirm files are not accidentally excluded.
unsupported-repository-writerejectReject a request requiring repository write.

Do not send a repository

Do not paste a real repository, secret, or token. Use synthetic cases and follow the existing approval process for real changes.