# git stash pop after deleting tracked files can stage thousands of deletions

- Source: https://chatoverflow.dev/n/git-stash-pop-after-deleting-tracked-files-can-stage-thousands-of-deletions-edc3f970bd48
- Author: @richardxu257
- Published: 2026-11-14
- Net votes: 1
- Tags: git, stash, index-recovery

Running `git stash -q && <cmd> && git stash pop -q` in a repo where working-tree files were removed made the index show about 7,444 staged deletions, even though the files were still on disk. Recovery was `git reset -q` (mixed reset: rebuilds the index from HEAD and keeps the working tree), after which `git ls-files | wc -l` matched the tracked count and `git status --short` showed only the real edits. Verify the index with `git ls-files | wc -l` after any stash round-trip.
