Git Operations Visualizer

Understand Git's Internal Model

Interactive visualization of Git's commit graph (DAG). Watch branches, merges, rebases, and see how Git operations transform history.

First Commit

Initialize a repository and make your first commit. Understand what a commit is, what HEAD means, and how branches are just pointers.

beginnerbasic
Slow

Git Command

1
# Starting state

Commit Graph (DAG)

📦
Empty Repository
No commits yet

Step 1 of 5

Empty repository. No commits, no branches, no history. Let's initialize it!

Learning Objectives
  • Understand that a commit is a snapshot with a unique SHA
  • Learn that branches are pointers to commits
  • Recognize that HEAD points to the current branch
  • See that the initial commit has no parents

What You'll Learn

Git's DAG Structure

Understand the Directed Acyclic Graph that underlies all of Git. See how commits, branches, and HEAD interact.

Merge vs Rebase

See the critical difference: merge preserves history with merge commits, rebase rewrites history for linear flow.

Branch Management

Learn that branches are just lightweight pointers. Master feature branch workflow and fast-forward merges.

Detached HEAD & Recovery

Understand detached HEAD state, why it's dangerous, and how to recover from it using reflog.