[英]Is it possible to accept pull request from a cloned/forked repo?
Is it possible to accept pull request from a cloned repo? 是否有可能接受来自克隆回购的拉取请求?
Example ( fork of repo ): 示例(回购分支):
Pull Request Limbo: Pull Request Limbo:
Is there any way to accept the pull request from Repo #1 to Repo #2? 有没有办法接受Repo#1到Repo#2的拉取请求?
Does this make sense? 这有意义吗? Maybe a git upstream pull request? 也许git上游拉请求?
The pull request applied to Repo #1 comes from a fork(another repository). 应用于Repo#1的pull请求来自fork(另一个存储库)。 If Repo #2 would like to apply the pull request, it's as simple as adding the fork as a remote and then fetch the changes directly from that fork. 如果Repo#2想要应用pull请求,那就像将fork作为远程添加一样简单,然后直接从该fork获取更改。
See https://help.github.com/articles/fork-a-repo and https://help.github.com/articles/using-pull-requests , which actually explain this in much more detail. 请参阅https://help.github.com/articles/fork-a-repo和https://help.github.com/articles/using-pull-requests ,它们更详细地解释了这一点。
Another approach would be to directly apply the patch by using git am
. 另一种方法是使用git am
直接应用补丁。 There is an example of git am
in usage in the latter link. 在后一个链接中有一个使用git am
的例子。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.