Skip to content

Commit 69f0c76

Browse files
committed
zh-cn update to 2acb308
1 parent 776f5d5 commit 69f0c76

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.zh-cn.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,23 @@ $ git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
634634
$ git checkout pr/42 pr-42
635635
```
636636

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+
637654
[*进一步了解如何检出pull request到本地.*](https://help.github.com/articles/checking-out-pull-requests-locally)
638655

639656
### 提交空改动 :trollface:

0 commit comments

Comments
 (0)