Every Git command git-sim can simulate, played on one small repository. Pick a command and watch what it does, before and after. See how dangerous it is before you type it. Then read its page, or run it on your own repository.
135 commands6 topics1 sample repository, so every command is comparableSimulated by git-sim, real Git, not a model of it
A public link uploads this graph to initialcommit.com: its commit messages and short hashes, branch and tag names, and file names. Anyone with the link can open it, and posts show the graph itself.
Public link copied:
Delete link: keep it to remove the public link later.
This page is a local file, so a posted link only works once the .html is hosted somewhere. Copy the image to post right away, or download the page and attach it.
How to use this page
sliderDrag it to move the graph from before the command to after it.
▶ / ❚❚Play or pause the command, start to finish, on a loop.
Before · AfterJump straight to either end.
← → · spaceStep through a multi-step command; space toggles Before / After.
APlay or pause from the keyboard (the page opens playing). Any manual input takes over.
hoverA commit shows its message, author, date and parents, with its history highlighted.
clickCopies the commit sha.
ctrl + wheelZoom around the cursor (pinch on a trackpad). Double-click resets the view.
EscStop playback, reset the view, close this menu.
shareThe Share button copies a link to this graph, copies it as an image, downloads PNG/SVG/page, or posts it. #before, #after or #step=N in the link pins the state.
Pick a command to watch it happen on a small sample repository.
git
safe
Sample repository: . Drag the slider or press play; hover a commit for its details.