将github pull request分支合并到本地分支 [英] Merge github pull request branch into local branch

查看:40
本文介绍了将github pull request分支合并到本地分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将github pull request分支合并到本地分支?

Is there a way to merge a github pull request branch into a local branch?

IE之类的

git clone https://github.com/tensorflow/tensorflow.git
git checkout -b work_in_progress
git merge https://github.com/tensorflow/tensorflow/pull/13107

推荐答案

您正在寻找的是

git fetch origin pull/ID/head:BRANCHNAME

然后切换到新分支

[master] $ git checkout BRANCHNAME

然后,您可以根据需要进行合并.这要感谢GitHub的帮助- https://help.github.com/articles/checking-out-pull-requests-locally/

then you can merge as it as you wish. This is thanks to GitHub help - https://help.github.com/articles/checking-out-pull-requests-locally/

这篇关于将github pull request分支合并到本地分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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