Reset Explained: Soft, Mixed, and Hard
Description
You've made a commit you want to undo locally. git reset is the tool, but it has three modes: soft, mixed, and hard. Understanding them is key to avoiding data loss.
Theory Questions
1. Which reset mode discards changes entirely from both staging and working directory?
2. 'git reset --soft HEAD~1' will:
3. What's the default mode for 'git reset' if no flag is specified?