Game4Git

Git Game Online — Learn by Playing

Learn Git by playing with Game4Git, the game for learning Git. Visualize branches, solve interactive challenges, and master git by practicing.

Welcome to Git Game

Edit a line of code and make your first commit in under 30 seconds. Or try a guided challenge.

Popular guides

Pick a topic—commits, branches, merge conflicts, Valgrind, GDB, or memory leaks—and jump straight into the matching interactive guide.

Git practice game for commits, branches, and merges

Practice Git commands online in a visual playground. Make commits, create branches, and merge safely while training the same workflow used in real repositories.

Explore guide

Learn Git branches with hands-on branch practice

Learn Git branching with guided branch practice. Create branches, switch context, and merge with confidence while the visual graph shows every pointer move.

Explore guide

Learn Git merge conflicts with an interactive conflict workflow

Understand Git conflict markers, compare both sides of a merge, and practice resolving merge conflicts without breaking your history.

Explore guide

Learn Valgrind memory leak debugging step by step

Follow this Valgrind memory leak tutorial to detect leaks, understand Memcheck output, and fix invalid reads or frees in C/C++ code.

Explore guide

FAQs

Is Game4Git free?
Yes. Game4Git is free to use and designed for learners and classrooms.
Do I need to install Git?
No. You can practice concepts, commands, and workflows directly in the browser.
Can instructors use this in class?
Yes. The Challenges and visual graph make it ideal for teaching core Git topics.
Can I learn Git by playing?
Yes, Game4Git is an interactive game designed to help you learn Git by playing with real challenges, commands and instant feedback.