Skip to content

Git Cherrypick

Git cherry-pick command allows you to apply a specific commit from one branch onto another

1
2
3
4
5
6
# list commit from other branch
git log <branch name> --oneline

# cherry
# from current branch cheery  commit from another branch
git cherry-pick <commit hash>

cherry pick multiple commits

git cheery-pick <hash1> <hash2>

apply order

cherry pick apply changes by the hash order