git 樱桃挑选一个拉取请求到一个分支?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34133628/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cherry-pick a pull request into a branch?
提问by Evanss
I need to get the changes from a pull request which isn't yet merged into a branch.
我需要从尚未合并到分支的拉取请求中获取更改。
I could cherry-pick each commit from the branch but there are quite a few of them. Is there a quicker way to get all the changes from a pull request?
我可以从分支中挑选每个提交,但其中有很多。有没有更快的方法从拉取请求中获取所有更改?
In case it makes a difference Im using Github.
万一它有所作为,我使用 Github。
采纳答案by houtanb
If the pull request is from a branch that is contained in your repository, as RedX noted, you can follow the instructions in thispost.
如果拉入请求是包含在你的资料库的一个分支,作为RedX注意,你可以按照说明这个职位。
On the other hand, if the pull request is from someone's fork of your repository, you'll first have to add their repository as a remote, pull in their branches, then cherry-pick as described in the post above.
另一方面,如果拉取请求来自某人对您的存储库的分叉,您首先必须将他们的存储库添加为远程存储库,拉入他们的分支,然后按照上面的帖子所述进行挑选。