Let's Learn Git!

A hands-on tutorial that takes you from first commit to confident daily use. Learn Git's concepts first, then apply them through practical exercises and real-world examples.

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
Subprojects 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

Quick start

New to Git? Start here:

  1. Install Git on your machine
  2. Understand how Git works — workspace, index, repository
  3. Try the exercises — clone, commit, push, pull

About

Selected references