Git - Reset Flashcards

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

Reset staging area to match most recent commit, but leave the working directory unchanged.

A

git reset

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

Reset staging area and working directory to match most recent commit and overwrites all changes in the working directory.

A

git reset —hard

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

Move the current branch tip backward to , reset the staging area to match, but leave the working directory alone.

A

git reset

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

Resets both the staging area and working directory to match. Deletes uncommitted changes, and all commits after

A

git reset —hard

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