[go: up one dir, main page]

#036 git reset HEAD~3

The command git reset HEAD followed by ~ and an amount will undo that specified amount of most recent commits.

Command Description
reset Command that resets to previous state
HEAD Pointer that stores the current state
~3 Amount of commits to be undone