Show who changed a line (blame) git
Annotate lines 10–25 with author and date
git blame -L 10,25 --date=short src/main.py
more git
all 45 commands →
Find commit that introduced a bug
git bisect start && git bisect bad HEAD && git bisect good v1.0
Show changed files between branches
git diff --name-status main..feature/x
Graph log one-liner
git log --oneline --graph --decorate --all
Undo last commit keep changes
git reset HEAD~1
Discard all local changes
git restore . && git clean -fd