Git Visualizer by Dipesh Sapkota
Git Visualizer is an interactive Git learning platform by Dipesh Sapkota. Explore a deterministic Git repository simulator, live commit DAG visualizer, guided lessons, safe undo laboratory, searchable command reference, and Git architecture flowchart.
This Git visualizer runs in your browser and models the working directory, staging area, commits, branches, HEAD, stash, and remotes. It is useful for learning Git commands such as git init, git status, git add, git commit, git branch, git merge, git rebase, git reset, git revert, and git reflog.
Git Visualizer Features
- Interactive Sandbox: Watch commits, branches, pointers, the working tree, index, stash, and remotes change as commands run.
- Guided Lessons: Learn from repository initialization through branching, merging, conflicts, and reflog recovery.
- Safe Undo Lab: Compare git restore, git reset, git revert, and git reflog with safety guidance.
- Architecture Flowchart: Trace code across the stash, workspace, staging area, local repository, and remote repository.
Git Concepts and Frequently Asked Questions
What is the difference between git merge and git rebase?
git merge preserves the history of both branches and may create a merge commit. git rebase reapplies commits on a new base to create a linear history and changes commit IDs.
Is git revert safer than git reset?
For shared branches, git revert is generally safer because it creates a new commit that reverses an earlier commit. git reset moves a branch pointer and can rewrite or discard history.
Can lost commits be recovered after git reset --hard?
Often yes. git reflog records earlier positions of HEAD, allowing a recovered commit to be inspected or referenced by a new branch.
Created by Dipesh Sapkota. Visit the Dipesh Sapkota developer portfolio.