Feature-Branch Git Workflow¶
Run the Git Workflow MicroSim Fullscreen
About This MicroSim¶
A typical feature-branch workflow as a graph of commits and review events: branch off main, push three commits (one of which fails CI), open a pull request, address review comments with a fix-up commit, get approval, merge, deploy. The diagram makes the whole lifecycle visible — including the parts that don't appear in git log.
How to Use¶
- Click Play Feature Lifecycle to walk through every step in order
- Click any node to see its commit message, author, and CI status
Embedding This MicroSim¶
<iframe src="https://dmccreary.github.io/information-systems/sims/git-feature-branch-workflow/main.html"
height="722px" width="100%" scrolling="no"></iframe>
Lesson Plan¶
Learning Objectives¶
By the end of this activity, students will be able to:
- Trace a feature from branch creation through deployment
- Identify where code review and CI checks fit in the timeline
- Distinguish a regular commit from a merge commit and a deployment
- Explain why fix-up commits are normal and expected, not signs of bad work
Suggested Activities¶
- Lifecycle Walk (5 min) — Play the lifecycle; pause at each step and explain
- CI Failure Drill (10 min) — Locate the failing commit; describe what the developer does next
- Review Comment Practice (10 min) — Write the kind of review comment that would prompt the F5 fix-up commit
References¶
- Atlassian. Git Tutorials — Feature Branch Workflow.
- Pro Git Book, ch. 3 (Branching).