Third edition · in progress

Everything you need to know about Git.

Pro Git takes you from your first git init to the internals of Git's object model. It's free to read, open source, and — with Git 3.0 on the horizon — being revised in the open for its third edition.

Licensed CC BY-NC-SA 3.0· 10 chapters, 3 appendices, 104 readable sections

Pro Git book cover

The Git 3.0 edition

Git 3.0 changes the defaults the book has taught for a decade: main as the default branch, SHA-256 object hashes, reftable ref storage, and a Rust build toolchain. The third edition revises every chapter to match — and the work happens in public.

Follow progress on the blog →

What's inside

  1. Getting Started8 sections
  2. Git Basics8 sections
  3. Git Branching7 sections
  4. Git on the Server10 sections
  5. Distributed Git4 sections
  6. GitHub6 sections
  7. Git Tools15 sections
  8. Customizing Git5 sections
  9. Git and Other Systems3 sections
  10. Git Internals9 sections
  11. Appendix A: Git in Other Environments9 sections
  12. Appendix B: Embedding Git in your Applications5 sections
  13. Appendix C: Git Commands12 sections

Latest from the blog

A new home on the web for Pro Git

The Pro Git project now has its own site: read the book online, search it, and follow progress on the third edition.

A progress page for the third edition

Every task the third edition needs, tracked in one hand-edited file and rendered as a live progress page on this site.

Planning the third edition

Git 3.0 is coming, and Pro Git is getting its first full revision since 2014. Here's what's changing and why.

Sixteen years in print, and counting

First published in 2009 and rewritten in 2014, Pro Git has been the book behind git-scm.com/book and has been translated by volunteers into dozens of languages.

Read the history of the book →