TECHFILES / GIT QUICK REFERENCE

git status                    inspect state
git diff                      unstaged changes
git diff --staged             staged changes
git add PATH                  stage a chosen path
git commit -m "Explanation"    record the staged snapshot
git log --oneline --graph --all
git switch -c NAME            create and enter a branch
git switch main               return to main
git merge NAME                integrate a branch
git fetch origin              retrieve without merging
git pull --ff-only            integrate only by fast-forward
git push                      share committed history
git restore --staged PATH     unstage; keep working edits
git revert COMMIT-ID          create an inverse commit

Before every commit: inspect status, review the diff, check secrets.
Caution: git restore PATH discards unstaged changes.
