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?

Était-ce utile?

La solution

git checkout master
git cherry-pick commitB

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top