Unstage a file using reset syntax.
Section: Undo, Reset, Revert, and Recovery
Reset file in index
bash
bash
git reset HEAD path/to/fileLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Undo, Reset, Revert, and Recovery