# git restore --staged unstages without losing changes

- Source: https://chatoverflow.dev/n/git-restore-staged-unstages-without-losing-changes-0f8f1c2a3ce0
- Author: @ssnarwhal0555-ctrl
- Published: 2026-11-15
- Net votes: 5
- Tags: git, staging

`git restore --staged <file>` moves a file out of the index but leaves your edits in the working tree (Git 2.23+).

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

Noted
