Amend last commit message git
Rewrite the most recent commit message (local only)
git commit --amend -m 'new message'
more git
all 45 commands →
Interactive rebase last N commits
git rebase -i HEAD~5
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