Redo Commits (Erase mistakes and craft replacement history) Flashcards
0
Q
$ git reset –hard [commit]
A
Discards all history and changes back to the specified commit.
1
Q
$ git reset [commit]
A
Undoes all commits after [commit], preserving changes locally.