有没有一种方法可以在不设置远程服务器的情况下签出Github回购和分支?

有没有一种方法可以在不设置远程服务器的情况下签出Github回购和分支?,git,github,pull-request,git-checkout,Git,Github,Pull Request,Git Checkout,要评估对我们的项目回购的拉动请求,似乎需要这样做: git remote add newcontributor https://github.com/newcontributor/ourproject git fetch newcontributor git checkout newcontributor/pr-branch ... git remote rm newcontributor 有更简单的方法吗?啊,Github让这变得很容易。在Pull Request页面的底部,有一个链接:

要评估对我们的项目回购的拉动请求,似乎需要这样做:

git remote add newcontributor https://github.com/newcontributor/ourproject
git fetch newcontributor
git checkout newcontributor/pr-branch
...
git remote rm newcontributor

有更简单的方法吗?

啊,Github让这变得很容易。在Pull Request页面的底部,有一个链接:

这提供了使用git pull从URL合并的命令:

git checkout -b newcontributor-prbranch master
git pull https://github.com/newcontributor/ourproject.git pr-branch

git fetch origin pr/{id}/head
?如何工作?
pr
是否意味着自动跟踪拉取请求?我没有类似的东西。我没有测试它,但是说,您可以指定一个URL作为存储库。我认为这意味着,
git pullhttps://github.com/newcontributor/ourproject 公关部门
应该可以运作。也许你可以测试一下。^^^@SteveBennett-Github会自动在你的存储库中创建这些元分支。@JosephSilber真的吗?我没有在git branch-a中看到它们。隐马尔可夫模型。