Cherry-pick a range of commits
Apply commits from A to B (inclusive) onto current branch
git cherry-pick A^..B
More git commands
-
git blame -L 10,25 --date=short src/main.pyAnnotate lines 10–25 with author and date
-
git bisect start && git bisect bad HEAD && git bisect good v1.0Binary search through history to find the breaking commit
-
git diff --name-status main..feature/xList files added, modified, deleted between two branches
-
git log --oneline --graph --decorate --allASCII branch graph of the full commit history
-
git reset HEAD~1Move HEAD back one commit; staged changes return to working tree