← All Learning Paths

Git & Version Control

A Git path covering safe rebase, recovery, conflict resolution, semantic versioning, and trunk-based workflows.

technicalbeginner8 nodes10.42h total

A practical Git and version control learning path covering repositories, branching, merging, rebasing, workflows, conflict resolution, hooks, and collaboration for effective team development.

  1. 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".

    Completion criteria: Run "Clean Up Local Commits with Interactive Rebase" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Recover a Deleted Git Branch

    ⏱ 0.25h

  2. 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

    Completion criteria: Run the steps through "Recreate a branch that was deleted locally but whose commits still exist in the reflog.", paste the command output, and mark the line that matches "A reflog entry showing the last commit of the deleted branch."; then rerun with one parameter changed.

    Next step: Resolve a Merge Conflict Without Losing Work

    ⏱ 0.25h

  3. 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

    Completion criteria: Deliver a transcript of "Resolve a Merge Conflict Without Losing Work" with each step's command and observed state, ending at "Resolve conflicts produced by git merge or git rebase while preserving the intended behavior".

    Next step: Rotate a Leaked Secret Safely

    ⏱ 0.5h

  4. 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

    Completion criteria: Show the command for every step of "Rotate a Leaked Secret Safely" and paste the output proving "Revoke and replace a credential that was committed to a repository or exposed in logs, then"; then note the step where "A new random secret that has never appeared in the repository or logs." appears.

    Next step: Pin GitHub Actions by Commit SHA

    ⏱ 0.5h

  5. 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

    Completion criteria: Run "Pin GitHub Actions by Commit SHA" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Building CLI Tools with Great Developer Experience

    ⏱ 0.5h

  6. 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.

    Completion criteria: Attach a decision log for "Building CLI Tools with Great Developer Experience": the "Sensible Defaults and the Zero-Flag Ideal" section, one rejected alternative, and the diff of the file you changed.

    Next step: Find the Merge Base of Two Branches

    ⏱ 1h

  7. 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

    Completion criteria: Attach the solution file for "Git & Version Control", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: Git & Version Control

    ⏱ 0.42h

  8. 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

    Completion criteria: Deliver "Content-addressed blob" and show a commit where the corresponding test goes from failing to passing.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h