Practice & Assessment
Test your understanding of Intermediate Git: Stashing, Tagging, Reverting, and Resetting
Multiple Choice Questions
5Which git reset mode keeps all changes staged after moving the branch pointer back?
What is the key difference between git revert and git reset?
What does 'git stash pop' do?
What is the recommended tag type for marking software releases and why?
What is git cherry-pick used for?
Mini Project
Release Management with Tags and Hotfix Branches
Create a project simulating a release cycle. Tag v1.0.0 after initial features are complete. Create a development branch and add three more features. Discover a critical bug in v1.0.0: create a hotfix branch from the v1.0.0 tag, fix the bug, tag v1.0.1, and cherry-pick the fix into the development branch. Use annotated tags for all releases. Document the release process in a RELEASES.md file. Use git stash at least once during the workflow to simulate context switching.
