git commit -m "msg"git commit --amend -m "m"
git branch · git branch x [start]
git branch -d x / -D x
git checkout x · -b x · -
git switch x · -c x · --detach r
git tag v1 [ref] · git tag -d v1
git merge x · --no-ff x
git rebase main
git reset --hard HEAD~2
git revert <ref> · git cherry-pick <ref>
git log · git statusgit reflog · git show r
HEAD HEAD~n HEAD^ name^2
branches, tags, short hashes
undo · clear · reset-yard · help
↑/↓ history · tab completes · / focuses input
each track is a branch lane · ◉ lamp = commit
dashed ring = merge · faded = abandoned siding
the HEAD badge rides wherever you stand