سؤال

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?

هل كانت مفيدة؟

المحلول

git checkout master
git cherry-pick commitB

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top