git reset (Soft, Mixed, Hard) — Roadmap Step & Resources
Moving the branch pointer and optionally rewriting the staging area and working directory
- Level: intermediate
- Estimated time: 1 days
- Roadmap: Git & GitHub Fundamentals
Before this step
Interview questions
- What's the difference between git reset --soft, --mixed and --hard?
Study resources
- Reset Demystified (Article) — The Pro Git book's dedicated, in-depth chapter on git reset --soft/--mixed/--hard.
- Git Reset Explained (Video) — A clear explanation of the difference between soft, mixed and hard reset.
Part of
- Undoing Changes & History Management — section
- Git & GitHub Fundamentals roadmap — the full learning path