git cherry-pick
CautionApply specific commits
git cherry-pick <commit>
Copies chosen commits onto the current branch — typical for porting hotfixes. Resolve or --abort on conflicts.
Examples
git cherry-pick abc1234Pick one commit
Syntax
git cherry-pick <commit> [--abort] [--continue]
Before you run it
Creates duplicate commits across branches.
Related commands
- git mergeMerge
- git rebaseRebase
- git logView history
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store