Git Visualizer: see how Git works, visually

Type a command or pick an action below to watch commits, branches, and pointers update in real time.

What is Git Visualizer?

Git Visualizer is a free, interactive Git learning tool by Dipesh Sapkota. It simulates a Git repository in your browser and draws the commit graph live as you run commands, with guided lessons, an undo lab, an architecture flowchart, and a command reference.

Explore Git Visualizer

Frequently asked questions

Is Git Visualizer free?

Yes. Git Visualizer is free to use, needs no account or sign-up, and runs locally in your browser. Repository state never leaves your device.

How does Git Visualizer simulate commands?

Git Visualizer runs an in-memory, deterministic Git repository state machine in the browser. It models the working directory, staging area, commit DAG, branches, HEAD, stash, and remotes without sending repository data to an external server.

Is git revert safer than git reset?

git revert creates a new commit that reverses an earlier commit without rewriting shared history. git reset moves branch pointers and can discard or rewrite history, so it needs more care on shared branches.

What causes a Git merge conflict?

A merge conflict happens when two branches change the same lines of a file, or when one branch edits a file the other deleted. Git marks the conflicting sections so you can resolve them by hand.

Can lost commits be recovered after git reset --hard?

Often, yes. git reflog records earlier positions of HEAD, so you can find the lost commit hash and create a new branch at it, for example with git switch -c recovery <hash>.

Created by .