Git concepts explained with Lego

Introduction

Git is a version control system. It's a powerful tool with a command line and vocabulary that can be be confusing until you've got the hang of what it's doing.

These pages were a proof of concept: using the construction of a Lego house to help visualise the concepts of version control used by Git. I’d already used Lego like this in presentations — these pages were intended as interaction for students to investigate.

I plan to come back to it in a simpler form, but for now it’s paused.

Completed pages:

Staging and committing changes
Git tracks changes. You add those changes to the staging area, then commit those changes to make the event stick.
Branches
There's more than one path through time. Git handles this with branches, which you can merge or rebase.

Construction notes:

  • Lego models and rendering: mecabricks.com

  • PNG optimisation: imageOptim

  • LEGO, the LEGO logo, and the Brick and Knob configurations are trademarks of the LEGO Group.