我如何获取我没有的分支的未合并拉取请求? [英] How can I fetch an unmerged pull request for a branch I don't own?

查看:148
本文介绍了我如何获取我没有的分支的未合并拉取请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在NServiceBus回购中引入一个特定的拉取请求(尚未处理到主流中):

https://github.com/johnsimons/NServiceBus/commit/d8524d53094e8181716e771c1023e968132abc15



这显然不是我的回购,但我需要该拉取请求中存在的更改。



执行此操作的最佳方法是什么?

p>

解决方案

要获取到您的存储库中的拉: $ b

  git fetch git@github.com:jboss / jboss-common-beans.git refs / pull / 4 / head 

然后用FETCH_HEAD做任何你想做的事:

  git checkout -b新分支FETCH_HEAD 


I need to pull in a specific pull request (that hasn't been processed into the main stream yet) in the NServiceBus repo:

https://github.com/johnsimons/NServiceBus/commit/d8524d53094e8181716e771c1023e968132abc15

It's obviously not my repo, but I need the changes that exist in that pull request.

What is the best way to do this?

解决方案

To fetch a pull into your repository:

git fetch git@github.com:jboss/jboss-common-beans.git refs/pull/4/head

Then do whatever you want with FETCH_HEAD:

git checkout -b new-branch FETCH_HEAD

这篇关于我如何获取我没有的分支的未合并拉取请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆