8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3a6ea7 + 69f0c76 commit 9f010abCopy full SHA for 9f010ab
README.zh-cn.md
@@ -634,6 +634,23 @@ $ git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
634
$ git checkout pr/42 pr-42
635
```
636
637
+操作多个仓库的时候,可以在Git中设置获取Pull Request的全局选项。
638
+
639
+```
640
+ git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
641
642
643
+此时可以在任意仓库中使用以下命令:
644
645
646
+ git fetch origin
647
648
649
650
+git checkout pr/42
651
652
653
654
[*进一步了解如何检出pull request到本地.*](https://help.github.com/articles/checking-out-pull-requests-locally)
655
656
### 提交空改动 :trollface:
0 commit comments