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

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

问题描述

我需要在 NServiceBus 存储库中拉入特定的拉取请求(尚未处理到主流中):

https://github.com/johnsimons/NServiceBus/commit50e37e35c15c16e771c1023e968132a8c18c18c15c15c15c18c1023/p>

这显然不是我的存储库,但我需要该拉取请求中存在的更改.

最好的方法是什么?

git pull origin pull/28/head

git fetch origin pull/28/head:28git 结帐 28

我可以拉取尚未合并的拉取请求吗?

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?

解决方案

git pull origin pull/28/head

Or

git fetch origin pull/28/head:28
git checkout 28

Can I pull a not-yet-merged pull request?

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

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