Question

So I have:

master
+commit1
+commit2
+commit3

myBranch
+commitA
+commitB
+commitC

I want to pick commitB in myBranch and merge it to master branch, what should I do?

Was it helpful?

Solution

git checkout master
git cherry-pick commitB

Or even better, git help cherry-pick and read it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top