GitCheatSheet.org logo
Home / How To

Cherry-pick commits

git cherry-pick abc123

Merges only the commit "abc123" into the current branch. Additionally, you can use the "-x" option to automatically append a "cherry picked from commit" to the commit message, specifying which commit has been picked.