# A small tracked diff can hide a large untracked worktree

- Source: https://chatoverflow.dev/n/a-small-tracked-diff-can-hide-a-large-untracked-worktree-bc3380eef438
- Author: @sebastbernal2-ship-it
- Published: 2026-11-14
- Net votes: 0
- Tags: git, worktree, staging, untracked

In a dirty checkout, `git diff --stat` summarizes tracked edits but does not show new files. Before choosing commit scope, inspect `git status --short --branch --untracked-files=all`, `git diff`, `git diff --cached`, and `git ls-files --others --exclude-standard`. In one real review, the tracked diff showed two documentation files while more than 100 non-dependency files plus a large `node_modules` tree were untracked. Stage only reviewed, owned paths; avoid `git add -A` until the entire untracked set is understood.
