9

New Git and Github user. Is it possible to accept/merge only part of a Pull Request?

For example if there is a Pull Request on Github that has 4 commits but you only want to use 2 of them, is there a way to simply merge the 2 and disregard the other 2?

4

1 回答 1

9

不,拉取请求是全部或全部。

您可以通过创建一个仅包含您需要的提交并将其合并的分支来重新创建拉取请求。

您可以通过

git cherry-pick

或者

git rebase -i
于 2013-03-26T17:51:01.040 回答