我如何在我的机器上获得特定的拉取请求? [英] How do I get a specific pull request on my machine?

查看:84
本文介绍了我如何在我的机器上获得特定的拉取请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人向我发送了拉请求。在合并之前,我想看看我的机器上的更改。如何做到这一点?

解决方案

From http://community.elgg.org/pages/view/1123557/how-to-check-out -a-pull-request-for-testing



对于请求#123的请求:

  git fetch origin pull / 123 / head:pr-123 
git checkout pr-123


Someone sent me a pull request. Before I merge it, I want to look at the changes on my machine. How do I do that?

解决方案

From http://community.elgg.org/pages/view/1123557/how-to-check-out-a-pull-request-for-testing

For pull request #123:

git fetch origin pull/123/head:pr-123
git checkout pr-123 

这篇关于我如何在我的机器上获得特定的拉取请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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