我可以拉一个尚未合并的拉请求吗? [英] Can I pull a not-yet-merged pull request?

查看:98
本文介绍了我可以拉一个尚未合并的拉请求吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如: https://github.com/BVLC/caffe/pull/1731



有时我需要提出这种拉请求,因为我打开了一个问题,而其他人提供了一个修复。然后,项目合作者可能会要求我确认修补程序在合并之前是否有效。那么如何拉取这些pull请求,而不是手动对我的本地存储库进行更改?解析方案

您可以抓取请求

  git fetch origin pull / 1731 / head:shelhamer-cudnn-r2 
git checkout shelhamer-cudnn-r2

,经过测试后,回到 master


Example: https://github.com/BVLC/caffe/pull/1731

Sometimes I need to pull this kind of pull requests because I open an issue, and someone else provides a fix. Then the project collaborator may ask me to verify whether the fix works before his merging. So how to pull these pull requests instead of manually doing changes to my local repository?

解决方案

You can fetch pull requests

git fetch origin pull/1731/head:shelhamer-cudnn-r2
git checkout shelhamer-cudnn-r2

and after testing, go back to master.

这篇关于我可以拉一个尚未合并的拉请求吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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