WeCodeAcademy
❮ git restoregit reset --soft ❯

git restore --staged

Unstages a file.

Group: Undo

Syntax

git restore --staged file

Example

Examplebash
Open in editor »
/ $

← All of Git Command Reference