Yu Zhang
AboutThoughtsNotes
notes/operating-system/git

Git

  • K2B-2-1Pro Git Ch1 — Getting StartedJun 2, 2020

    Notes on Pro Git (2nd ed.) Chapter 1 — version control concepts, Git's design (snapshot model, three states), installing Git, first-time setup, and the built-in help system.

  • K2B-2-2Pro Git Ch2 — Git BasicsJun 2, 2020

    Notes on Pro Git (2nd ed.) Chapter 2 — initializing/cloning repos, recording changes (`add`/`commit`/`rm`/`mv`/`.gitignore`/`diff`), viewing history (`log`/`show`/`reflog`), undoing things (`restore`/`reset`/`revert`/`amend`), working with remotes, tagging, aliases. Plus `git stash` (technically Pro Git §7.3) placed here for workflow proximity.

  • K2B-2-3Pro Git Ch3 — Git BranchingJun 2, 2020

    Notes on Pro Git (2nd ed.) Chapter 3 — branches as movable pointers, branch + merge basics, merge strategies + conflicts, branch management, branching workflows (long-running, topic, trunk-based), remote branches (tracking, upstream, pruning), and rebasing (incl. the golden rule).

  • K2B-2-4Git Worktree and Git LFSJan 15, 2026

    Multiple working trees from one repo (`git worktree`), large-file storage with pointer indirection (`git lfs`), and rewriting history to purge committed large files (`git filter-repo`, BFG, legacy `filter-branch`).

© 2026 Yu Zhang