Cherry Picking: git cherry-pick
Essential Git Commands
git status
What's changed, staged, and untracked — your most-used command.
git diff
See exactly what's different before staging.
git log
Inspect commit history with --oneline or --graph for visualization.
git reset
Undo staging or commits — careful with --hard.
Noble Desktop's Full-Stack Web Development Certificate teaches Git alongside the modern web stack — a must for any developer.
If you don't want to merge an entire branch, you can choose to merge specific commits… a process called cherry-picking.
Let's look at one scenario when cherry-picking is useful. Let's say you've been working on a feature branch and decide that most of the work is not good. You want to abandon the branch, but there are one or more commits that are good. You don't want to lose that work, so you can cherry-pick the specific commits that are good, applying them to a different branch.