main branch feature branch merge commit
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Three-Way Merge & Commit DAG Simulator

This simulation demonstrates how distributed version control systems like Git track history and reconcile divergent work. Every commit you make on main or feature is a real node appended to a directed acyclic graph, rendered live in 3D. When you merge, the sim runs the actual algorithm Git uses: an ancestor-set walk to find the merge base (lowest common ancestor), then a line-by-line three-way diff against that base to decide which lines auto-merge and which are true conflicts that need your resolution — exactly how branching, merging, and conflict resolution work under the hood.