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

ziy*_*ang 5 git github

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

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

Nil*_*ner 12

您可以获取拉取请求

git fetch origin pull/1731/head:shelhamer-cudnn-r2
git checkout shelhamer-cudnn-r2
Run Code Online (Sandbox Code Playgroud)

经过测试,请回去master.