git-renormalize

Installation
SKILL.md

Git Renormalize

A phantom is a file git reports as modified whose only difference is its line endings (CRLF vs LF). Goal: clear every phantom from git status while leaving real content edits and deletions untouched.

Confirm it's phantom

  1. Check the setup: git config core.autocrlf and look for a .gitattributes (e.g. * text=auto eol=lf). A mismatch between the two is the usual cause.
  2. Prove a sample: pick a flagged file — git diff <file> shows nothing (or only a CRLF will be replaced by LF warning) while git status lists it modified. An empty content diff is the signature of a phantom.

Completion criterion: at least one flagged file confirmed to have an empty content diff. If the diffs show real content, this is not a line-ending problem — stop.

Clear the phantoms

Installs
20
Repository
nulfrog/skills
First Seen
Jun 25, 2026