Git Undoing Changes Flashcards

1
Q

git revert

A

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

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

git reset

A

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

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

git clean -n

A

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

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