Git - Undoing Changes Flashcards

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

Create new commit that undoes all of the changes made in , then apply it to the current branch

A

git revert

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

Remove from the staging area, but leave the working directory unchanged. This unstages a file without overwriting any changes.

A

git reset

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

Shows which files would be removed from working directory. Use the -f flag in place of the -n flag to execute the clean.

A

git clean -n (-f)

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