Cherry-pick a range of commits git
Apply commits from A to B (inclusive) onto current branch
git cherry-pick A^..B
more git
all 45 commands →
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
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