Chapter 1 — Getting Started
Git install · user config · git init · first commit
This is the first chapter of Git. Through the simplest possible workflow, we walk through one full cycle: **write the project skeleton → commit → run**.
Chapter 2 — Daily Workflow
add · commit · log · diff · .gitignore · alias
The everyday cycle: edit → `git add` → `git commit`, plus `git log` to inspect history, `git diff` to inspect changes, `.gitignore` to leave files out, and aliases to type less.
Chapter 3 — Branches and Merging
branch · switch · merge · conflict
Branches let you work on multiple ideas in parallel without touching `main`. Merging integrates a branch back. Conflicts happen when two branches edit the same line — we'll see how to resolve them.
Chapter 4 — Remote Repositories
clone · push · pull · fetch · credentials
A "remote" is another copy of your repository — usually on GitHub. `git push`, `git pull`, `git fetch` and `git clone` are the four verbs you need. Add credentials (PAT or SSH) once and you're set.
Chapter 5 — GitHub Collaboration
fork · PR · Issue · Review · branch protection
Beyond `git push`/`pull`, GitHub adds people-shaped features: forks, pull requests, code review, issue tracking, and branch protection. This chapter covers the social side of Git.
Chapter 6 — Undo and Restore
reset · revert · restore · checkout · reflog · stash
Git makes it hard to lose work permanently. This chapter covers all the "undo" mechanisms: `reset`, `revert`, `restore`, `checkout`, `reflog`, `stash`.
Chapter 7 — Rebase and Cherry-pick
interactive rebase · squash · cherry-pick · force-with-lease
Tools to clean up history before sharing it. `rebase -i` lets you reorder, squash and edit commits. `cherry-pick` plucks one commit from anywhere. `--force-with-lease` lets you push rewritten history safely.
Chapter 8 — GitHub Actions
workflow yml · triggers · matrix · cache · secrets
GitHub Actions runs CI/CD workflows defined as YAML files in `.github/workflows/`. Every `push` or `pull_request` can trigger automated tests, builds, lints, deployments.