git status -sb # short status with branch infogit log --oneline --graph -20 # compact graphgit diff --staged # what's about to be committedgit add -p # interactively stage hunksgit commit --amend --no-edit # fix the last commit's files, keep the message
git restore <file> # discard unstaged changesgit restore --staged <file> # unstage without losing editsgit reset --soft HEAD~1 # uncommit last commit, keep changes stagedgit reflog # find a commit you thought you lost