Cherry pick in Git

Cherry picking in git is a way by which you can move a commit from one branch and apply it onto another.

Make sure you are on the branch you want apply the commit to

git checkout master

Execute the following:

git cherry-pick <commit-hash>

commit-hash can be found using git log

Comments

Popular posts from this blog

Inserting and Moving elements inside Ruby Array

Difference between Validations, Callbacks and Observers