How-To · Version Control
Version Control guides
Git, GitHub CLI — diffs, branches, workflows.
4 guides
`git diff` — Every Command Variant with Examples (2026)
`git diff` is the universal change-inspection tool. Same command, ten different scopes: working tree, staged, two commits, two branches, a single file, ignoring whitespace. Here's every variant.
How to Check Git Version on Windows, Mac, and Linux — `git --version` (2026)
`git --version` is the universal Git health-check. Here's what to run, what to expect, and what to do when the output isn't what you wanted.
git diff --exclude: How to Exclude Files & Patterns from Git Diff (2026)
Lock files, build output, and node_modules dominate `git diff`. Hide them with one-shot pathspec excludes, repo-wide `.gitattributes` rules, or custom diff drivers.
GitHub CLI (`gh`) — Install, Authenticate, and Use from Your Terminal (2026)
GitHub CLI brings pull requests, issues, releases, and workflows straight to your terminal. Install in one command, authenticate once, and never open github.com again.
Get weekly notes in your inbox
Practical tips, tutorials and resources. No spam.