Interactive rebase last N commits git
Squash, reorder, or edit last 5 commits
git rebase -i HEAD~5
more git
all 45 commands →
Stash with message
git stash push -m 'wip: feature-x' -- src/
Apply specific stash
git stash list && git stash apply stash@{2}
Cherry-pick a range of commits
git cherry-pick A^..B
Show who changed a line (blame)
git blame -L 10,25 --date=short src/main.py
Find commit that introduced a bug
git bisect start && git bisect bad HEAD && git bisect good v1.0