Answers for "cherry picking git example"

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language