40 / 57 · 17 Git & Version Control · Bisect and Cherry-Pick← prev⊞ allnext →☰ Read as one page
5.10Hands-On Exercise
- Create a repository with 20+ commits. Intentionally break a test in commit 12.
- Use
git bisect(manual mode) to find the breaking commit. - Repeat with automated bisect:
git bisect run <test-command> - Practice cherry-picking a single commit from one branch to another.
- Intentionally create a cherry-pick conflict, resolve it, and complete the cherry-pick.
- Write a bisect script that handles dependency installation and returns exit code 125 for un-buildable commits.