Undo Flashcards

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

git reset –hard HEAD

A

discard all local changes in your working directory

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

git checkout HEAD

A

discard local changes in a specific file

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

git revert

A

revert a commit (by producing a new commit with contrary changes)

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

git reset – hard

A

reset your HEAD pointer to a previous commit and discard all changes since then

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

git reset

A

reset your HEAD pointer to a previous commit and preserve all changes as unstaged changes

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

git reset –keep

A

reset your HEAD pointer to a previous commit and preserve uncommitted local changes

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