Git topic

Branching and merging

Learn how to work with branches and merge your changes together.

Explore

Look it up and watch it run

The commands, played on a real repository

Pick a command to watch it happen. Each one shows its risk rating; the ones with a full page link to the before and after, whether it is safe, and how to undo it.

git-sim
Initial CommitDevlands

Pick a command to watch it happen on a small sample repository.

Every command plays on the same repository, so they are easy to compare.

  • Safe reads or only adds; nothing is lost
  • Caution moves or rewrites things; recoverable from the reflog
  • Destructive can lose work for good

Watch them in the git-sim viewer

Each demo plays step by step, with the before and after side by side.

Every command in one place: the Visual Git command reference.

Learn

Learn how it works

Develop

Try it in your own repos

git-sim

See what a command will do to your repo before you run it. It reads the repository and draws the result without changing anything.

git-sim switch -c <branch>git-sim merge <branch>git-sim branch -d <branch>

It can also pre-flight a risky command as you type it, and follow your repo live while you or an AI agent work in it.

git-dummy

Make a throwaway repo shaped for this topic, then practice on it without risking real work.

git-dummy --commits=6 --branches=2 --name practicegit-dummy --scenario merge-conflict --name practice

Then cd practice and run any of the git-sim commands here.

Want to see your repo a whole new way? Devlands turns it into a 3D world you can walk through.