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.
2
Q
git reset
A
Remove from the staging area, but leave the working directory unchanged. This unstages a file without overwriting any changes.
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.