Git Cherry Pick
Question
What does git cherry-pick do?
Hint
cherry-pick applies one commit, not a range.
Explanation
git cherry-pick <commit> takes a single commit from another branch and applies it to the current branch as a new commit. This is useful for applying a bug fix or feature from one branch without merging the entire branch. Unlike merge, cherry-pick does not bring all changes — only the specified commit(s). Be aware that cherry-picking can cause conflicts if the context has changed.
Related Resources
Related Lessons
- Git Merge
Learn git merge.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.