Merge vs. Rebase vs. Squash
✓ Published0🌍 Public
Aackuser
Last edited Dec 1, 2023
Created on Apr 10, 2024
This visualization compares three Git workflows—merge, rebase, and squash—by rendering commit histories as branching node-link diagrams. It uses D3’s `d3.forceSimulation` to position commits and `d3.line` or path generators to draw edges, with each strategy shown as a separate panel. The data comes from a gist by ackuser describing situational preferences, and the code encodes commit order, merge points, and squashed clusters directly from that narrative. Interactive hover or click events highlight individual commits, revealing the author’s rationale for each approach.
AI-generated description