我在 github 上有一个拉取请求列表。我可以像这样获取拉取请求:
git fetch origin +refs/pull/*:refs/remotes/origin/pr/*
我得到这样的输出:
* [new ref] refs/pull/1/head -> origin/pr/1/head
* [new ref] refs/pull/1/merge -> origin/pr/1/merge
* [new ref] refs/pull/10/head -> origin/pr/10/head
* [new ref] refs/pull/10/merge -> origin/pr/10/merge
* [new ref] refs/pull/11/head -> origin/pr/11/head
* [new ref] refs/pull/11/merge -> origin/pr/11/merge
现在我想检查其中一个裁判。我尝试的任何方法似乎都不起作用:
$ git checkout refs/pull/1/head
error: pathspec 'refs/pull/1/head' did not match any file(s) known to git.
或者:
git checkout origin/pr/1/head
error: pathspec 'origin/pr/1/head' did not match any file(s) known to git.
如何查看此参考资料?