Git & Version Control
A Git path covering safe rebase, recovery, conflict resolution, semantic versioning, and trunk-based workflows.
A practical Git and version control learning path covering repositories, branching, merging, rebasing, workflows, conflict resolution, hooks, and collaboration for effective team development.
Run "Squash multiple WIP commits into a single logical commit with a clean message before" from "Clean Up Local Commits with Interactive Rebase" and confirm the documented result "A list of recent commits with 7-character SHA and subject lines. Identify the number of".
Next step: Recover a Deleted Git Branch
⏱ 0.25h
Apply "Recover a Deleted Git Branch" to a git task, checking that "A reflog entry showing the last commit of the deleted branch." appears after the "Recreate a branch that was deleted locally but whose commits still exist in the reflog." step.
Prerequisites: Clean Up Local Commits with Interactive Rebase
Next step: Resolve a Merge Conflict Without Losing Work
⏱ 0.25h
Execute "Resolve a Merge Conflict Without Losing Work" end to end, then repeat the last step with one parameter changed and compare "Resolve conflicts produced by git merge or git rebase while preserving the intended behavior".
Prerequisites: Recover a Deleted Git Branch
Next step: Rotate a Leaked Secret Safely
⏱ 0.5h
Run "Revoke and replace a credential that was committed to a repository or exposed in logs, then" from "Rotate a Leaked Secret Safely" and confirm the documented result "A new random secret that has never appeared in the repository or logs.".
Prerequisites: Resolve a Merge Conflict Without Losing Work
Next step: Pin GitHub Actions by Commit SHA
⏱ 0.5h
Apply "Pin GitHub Actions by Commit SHA" to a git task, checking that "The workflow references a full commit SHA and the comment records the release tag." appears after the "List every action reference that uses a tag or branch instead of a full 40-character commit" step.
Prerequisites: Rotate a Leaked Secret Safely
Next step: Building CLI Tools with Great Developer Experience
⏱ 0.5h
Compare "Sensible Defaults and the Zero-Flag Ideal" with "Graceful Errors and Exit Codes" in "Building CLI Tools with Great Developer Experience" and state which trade-off you would accept in git code.
Next step: Find the Merge Base of Two Branches
⏱ 1h
In the "Git & Version Control" path, implement "Find the Merge Base of Two Branches" so JSON object: { commits: [{ hash, parents: string[] }], headA, headB } yields {mergeBase:base,onlyA:[a1],onlyB:[b1]}, including the second sample's edge case.
Prerequisites: Building CLI Tools with Great Developer Experience
Next step: Capstone: Git & Version Control
⏱ 0.42h
Deliver the "Build a Document Version Store" blueprint with "Content-addressed blob" working and "Revision tree" recorded as evidence.
Prerequisites: Building CLI Tools with Great Developer Experience, Find the Merge Base of Two Branches
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h