Git Branching & Commit Sandbox

Git’s branching model is incredibly powerful but often difficult to visualize, especially when dealing with operations like merges, checkouts, and rebases.

Use this interactive sandbox to execute standard Git commands and visualize the commit history tree redrawing itself live in ASCII in the console panel!


Interactive Git Sandbox

Type Git commands in the prompt (e.g., git commit, git checkout -b feature, git merge main, git rebase main), or trigger one of our automated Visual Demos below to watch the commit tree build step-by-step!

Visual Demos:
[ GIT SANDBOX ]
[Commit graph loading...]
git-demo:~$
--- ### Git Command Reference Cheat Sheet Try running these commands in the sandbox: | Command | Action | | :--- | :--- | | `git commit -m "message"` | Create a new commit on the active branch | | `git branch ` | Create a new branch at the active commit | | `git checkout ` | Switch HEAD to branch `` | | `git checkout -b ` | Create and switch to a new branch | | `git merge ` | Merge branch `` into active branch | | `git rebase ` | Rebase active branch commits onto branch `` | | `git log` | Show commit history details | | `help` | Show available commands | | `clear` | Clear terminal logs |