There are times when you need to cherry-pick a commit from another branch. Then there are times when you only need parts of that commit.
Following is how you can partly cherry-pick a commit to get only the changes that you need.
Get the patch for the entire commit. Include the -n
for no commit so that it does not add it as a commit to your branch
git cherry-pick -n <commit
Then unstage the the changes from the cherry-picked → Continue reading “How to partially cherry-pick a commit in git”