Git Cheatsheet - Quick Git Command Reference

Quick reference for common Git commands. Search, copy, and use Git commands instantly.

Share
Back to Git Cheatsheet

git cherry-pick

Apply specific commits to current branch

Syntax

git cherry-pick [options] <commit>...

Common Options

OptionDescription
-n, --no-commitApply changes without commit
--continueContinue after resolving conflicts
--abortAbort cherry-pick
--skipSkip current commit
-xAppend source to commit message

Examples

git cherry-pick a1b2c3d

Cherry-pick single commit

git cherry-pick a1b2c3d e4f5g6h

Cherry-pick multiple commits

git cherry-pick --continue

Continue cherry-pick after conflict

git cherry-pick -x a1b2c3d

Cherry-pick with source attribution

Related Commands

Related Tools

More Code & Dev Tools