Git
37 notes in this chapter
Git Terms MOC
37 Git commands across 10 categories. Each note has: syntax, common options explained, a basic example, an extended real-world example, common pitfalls, and related commands.
Setup & Configuration
Basic Snapshotting
Inspecting & Comparing
Branching & Merging
Remote & Collaboration
Undoing & Rewriting History
Stashing
Tagging & Releases
Advanced & Internals
Hooks & Automation
How to use this
Use it as a lookup, not a read-front-to-back reference. When a tutorial or job posting mentions a command you don’t recognize, check here first.
Suggested order if starting from zero
- git init → git add → git commit → git status → git diff — the absolute daily loop
- git branch → git checkout/switch → git merge — working with more than one line of work
- git remote → git fetch → git pull → git push — working with GitHub/GitLab
- git log → git stash → git rebase — once the basics are automatic
- git reset vs git revert vs git restore — learn these together, they’re constantly confused with each other
- Everything in Advanced & Internals — only when you actually hit the problem it solves (lost commit, need to bisect a bug, etc.), not before
Related
- CI/CD and Git Hooks connect Git to your deployment pipeline
- Semantic Versioning pairs with git tag for releases