WeCodeAcademy
❮ git restore --stagedgit reset ❯

git reset --soft

Undoes commits, keeps changes staged.

Group: Undo

Syntax

git reset --soft HEAD~1

Example

Examplebash
Open in editor »
/ $

← All of Git Command Reference