All cards

Card #038 · Undo

Undoing commits softly

#038: Undoing commits softly. git reset HEAD^ --soft. git reset: command that resets to previous state. HEAD^: pointer that stores the current state. The circumflex is a shortcut for the last commit. --soft: flag that stores changes in staging.