Answers for "how to git cherry pick multiple commits"

9

git cherry pick commit

#Checkout the branch you want to apply the commit to.
git checkout master

#Cherry pick using the commit hash.
git cherry-pick <commit-hash>

#If cherry picking from a public branch use "-x" to add a standardized commit message.
git cherry-pick -x <commit-hash>
Posted by: Guest on March-31-2020
0

git cherry pick multiple commits

To cherry-pick all the commits from commit A to commit B (where A is older than B), run:
git cherry-pick A^..B

If you want to ignore A itself, run:
git cherry-pick A..B
Posted by: Guest on February-15-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language