Redo Commits (Erase mistakes and craft replacement history) Flashcards

You may prefer our related Brainscape-certified flashcards:
0
Q

$ git reset –hard [commit]

A

Discards all history and changes back to the specified commit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

$ git reset [commit]

A

Undoes all commits after [commit], preserving changes locally.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly