Let's Learn Git!

Git is everywhere — in every team, every deployment pipeline, and every AI coding tool. Yet most developers learn it by memorizing commands without understanding what happens underneath.

This tutorial takes a different approach. You learn the concepts first — how Git stores data, how branches actually work, what a merge really does — then apply that understanding through exercises and a 17-recipe playbook you can reach for every day.

Why This Tutorial

What You'll Learn

Chapters

Chapter What you'll learn
Introduction What Git is, installation, how it works, command overview
Building Blocks Repositories, objects, references, HEAD, tags
Branching and Merging Branches, merge strategies, rebase, cherry-pick, conflicts, stash
Remote Repositories Clone, push, pull, fetch, remote tracking, forking workflows
Nested Repositories Submodules and subtrees for managing dependencies
Expert Topics Configuration, selectors, refspecs, hooks, bisect, rewriting history
Playbook Step-by-step recipes for common Git tasks
Appendix Merge strategies, SSH setup, Git clients, references
Glossary Key terms and definitions

About

This tutorial started as personal memo pages — quick notes I wrote for myself because I kept forgetting how Git works. Over time, those notes grew into Markdown documents, then chapters with diagrams and exercises, then an Astro site with quizzes, a 17-recipe playbook, and the structured tutorial you see now. More than 200 hours of writing, rewriting, and refining.

If it helps you understand Git a little better, it was worth every hour.

Further Reading

On this page