Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #cherry #pick #commit
ADD COMMENT
Topic
Name
1+3 =