Git - Reset Flashcards
1
Q
Reset staging area to match most recent commit, but leave the working directory unchanged.
A
git reset
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
3
Q
Move the current branch tip backward to , reset the staging area to match, but leave the working directory alone.
A
git reset
4
Q
Resets both the staging area and working directory to match. Deletes uncommitted changes, and all commits after
A
git reset —hard