Git · Middle · Question 9 of 75
What is the default mode of git reset <commit>?
- 1
--soft: moves the branch, keeps index and files - ✓Correct answer:
--mixed: moves the branch and resets the index, keeps files - 3
--hard: moves the branch and overwrites everything
Explanation
Mixed leaves your changes in the working tree as unstaged. --soft keeps them staged, --hard discards them.