Practice advanced Git concepts through real-world scenarios.
You will practice:
- stash
- cherry-pick
- reflog
- bisect
- tags
- hooks
- worktree
- submodules
echo "change" >> file.txt
git stash
git stash list
git stash popgit checkout -b feature
echo "fix" >> file.txt
git commit -am "fix"
git checkout main
git cherry-pick <commit>git commit -am "test"
git reset --hard HEAD~1
git reflog
git reset --hard HEAD@{1}git bisect start
git bisect bad
git bisect good <old>git tag -a v1.0 -m "release"
git push origin v1.0cd .git/hooks
touch pre-commit
chmod +x pre-commitgit worktree add ../test test
git worktree listgit submodule add <repo>
git submodule update --initYou:
- broke code
- lost commit
- need fix from another branch
- must tag release
1. Recover commit (reflog)
2. Apply fix (cherry-pick)
3. Debug issue (bisect)
4. Save work (stash)
5. Tag version
[ ] Can I recover lost work?
[ ] Can I debug history?
[ ] Can I apply specific commits?
[ ] Can I manage multiple branches?
[ ] Can I use advanced tools?
You are now:
🔥 Advanced Git User
🔥 Debugging Expert
🔥 Workflow Optimizer
If you can complete this lab confidently, you understand Git better than most developers.
Move to:
👉 08-GitHub-Pro-Level/README.md