Git - Undoing Changes Flashcards
1
Q
Create new commit that undoes all of the changes made in , then apply it to the current branch
A
git revert
2
Q
Remove from the staging area, but leave the working directory unchanged. This unstages a file without overwriting any changes.
A
git reset
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)