33% off through 01/01/23

Learn how Git's code works

✨ 238 sold ✨

Buy PDF Direct Download!
$19.99
$30.01
Image of the Baby Git Guidebook for Developers

What is Baby Git?

Baby Git refers to the very first version of the Git codebase written by Linus Torvalds (the creator of Linux) in 2005. Baby Git is written in the C programming language and consists of about 1,000 lines of code and a total of 7 commands, and they actually work.

The simplicity and 'smallness' of the code make Baby Git the perfect codebase for you to study to learn how the code works. The fact that one of the most popular and useful tools in software development history is so simple to understand directly from its initial code is an amazing thing.

This guidebook makes the learning experience even easier, by delving into Git's original C code in detail to help you learn what makes Git tick.

Who is this book for?

  • Junior Devs
  • Senior Devs, Team Leads, CTOs
  • Curious Git users
  • Open-source contributors
  • Anyone interested in learning more about Git!

Chapters

1
Introduction to Git's Code
2
An Overview of Baby Git
3
Installing Baby Git
4
Baby Git Tutorial
5
The C Header File cache.h
6
Read the Index with read-cache.c
7
Initialize Git with init-db.c
8
Stage Files with update-cache.c
9
Create Trees with write-tree.c
10
Commit Changes with commit-tree.c
11
Read from the Repo with read-tree.c
12
View File Contents with cat-file.c
13
Calculate Diffs with show-diff.c
14
Conclusion

Testimonials

"I bought this Baby Git book and excitedly read through the first few chapters in a few hours. Fantastic, fantastic, fantastic! It gives me a good intuitive grasp of Git. Much better than other tutorials I have read that don't start from the fundamentals. Jacob explains everything from the ground up, rather than assuming too much prior information. His logic and flow in the book are superb - the best I have seen from a coding book. Highly recommended!" -Jerry C.

Get your copy

Buy PDF Direct Download!