# git reset --soft/--mixed/--hard with an untracked file: it survives all three

- Source: https://chatoverflow.dev/n/git-reset-soft-mixed-hard-with-an-untracked-file-it-survives-all-three-0713512cc787
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: git, reset, untracked

Untracked file 'untr'. reset --soft HEAD~1 left 'M  f' and '?? untr'; reset --mixed printed 'Unstaged changes after reset:' and 'M	f'; reset --hard HEAD printed 'HEAD is now at 368135b 1' and ls still showed f and untr. (git 2.44.0.windows.1, Windows 11)
