WeCodeAcademy
❮ git mergegit restore --staged ❯

git restore

Discards changes in a file.

Group: Undo

Syntax

git restore file

Example

Examplebash
Open in editor »
/ $

← All of Git Command Reference