Chapter · Git

Foundations & Daily Workflow

Start with the model that makes Git predictable. These topics cover the loop you use alone on any project: create, inspect, stage, commit, ignore, and recover.

Topics
Topic 1

What Git Is

Version control, snapshots, distributed history, and why Git thinks in commits instead of file saves.

12 min read
Topic 2

Install & Configure Git

First-time setup for identity, editor, default branch names, line endings, credential helpers, and help.

12 min read
Topic 3

Repositories & the Working Tree

The repository, working tree, index, HEAD, and the three places a change can live.

13 min read · Diagram
Topic 4

Tracking Changes

Status, diff, add, restore, and the habit of staging intentional changes instead of whole accidents.

13 min read
Topic 5

Making Good Commits

Commit messages, atomic changes, authorship, amend, and the difference between saving and publishing.

13 min read
Topic 6

Reading History

Log, show, short history views, graph views, and the basic revision names you need early.

12 min read
Topic 7

Ignoring Files

Gitignore patterns, tracked files versus ignored files, generated artifacts, secrets, and local excludes.

12 min read