Skip to content
The Git Crypt

/static/cripta/en/

Menu

Living collection · GIT-001 to GIT-026

The commands holding up Git's cathedral, one per page.

Upstairs, the nave: commit, push, merge. Down here, the bones of rescue, archaeology, plumbing, workshop and surgery — each with its card, its label, and the answer to the question that matters: how to call it.

Descend into the crypt Why this way Where it came from

Drawers

The five drawers these bones are kept in.

The whole ossuary

  1. GIT-001 git reflog HEAD's logbook: the commit you think you lost is still down here. Rescue common
  2. GIT-002 git fsck --lost-found Sweeps the basement for objects no reference claims. Rescue forgotten
  3. GIT-003 git stash Shelves your half-done work and hands the bench back clean. Rescue common
  4. GIT-004 git checkout -p Discards the damage piece by piece, not the whole file. Rescue uncommon
  5. GIT-005 git bisect Binary search for the guilty commit — history interrogated by halves. Archaeology common
  6. GIT-006 git blame -w -C Ignores reindenting and relocation; points at who really wrote it. Archaeology uncommon
  7. GIT-007 git log -S The pickaxe: finds the commit where an expression was born or died. Archaeology uncommon
  8. GIT-008 git log -G The fine sieve: a regex over the diff, where the pickaxe can't reach. Archaeology forgotten
  9. GIT-009 git shortlog -sn The dig's census: who dug, and how many times. Archaeology uncommon
  10. GIT-010 git range-diff Compares two versions of the same commit series — before and after the rebase. Archaeology forgotten
  11. GIT-011 git cat-file -p Opens any object in the vault and shows what's inside. Plumbing uncommon
  12. GIT-012 git rev-parse Translates any name — HEAD~3, @{u}, main — into the hash git understands. Plumbing uncommon
  13. GIT-013 git hash-object Computes a file's identity — and, if asked, deposits it in the vault. Plumbing forgotten
  14. GIT-014 git ls-files The list of what the index actually sees, with no opinion from the working tree. Plumbing uncommon
  15. GIT-015 git update-ref Moves a reference by force — the lever branch and tag pull under the hood. Plumbing forgotten
  16. GIT-016 git cherry Tells which of your commits haven't landed on the other side — by content, not hash. Plumbing forgotten
  17. GIT-017 git worktree Two branches of the same repository, each in its own folder. Workshop uncommon
  18. GIT-018 git rerere Resolves the conflict you already resolved — and never asks again. Workshop uncommon
  19. GIT-019 git sparse-checkout Brings to the bench only the corner of the repository that matters. Workshop uncommon
  20. GIT-020 git maintenance The hired caretaker: gc, prefetch and friends on an agreed schedule. Workshop forgotten
  21. GIT-021 git notes Annotations hung on published commits, rewriting nothing. Workshop forgotten
  22. GIT-022 git commit --fixup Tags the patch with its target's name; autosquash slots it in later. Surgery uncommon
  23. GIT-023 git cherry-pick -x Transplants the commit and leaves a plaque saying where it came from. Surgery uncommon
  24. GIT-024 git revert -m Undoes a whole merge by choosing which parent still counts. Surgery uncommon
  25. GIT-025 git rebase --onto Cuts out a series of commits and grafts it onto another base. Surgery uncommon
  26. GIT-026 git filter-branch It rewrote entire histories — and today its own manual says to call someone else. Surgery forgotten