1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-09 17:36:37 +02:00

zh-cn update to 2acb308

This commit is contained in:
Tony Xue
2014-07-12 18:24:55 +08:00
parent 776f5d5147
commit 69f0c769c5

View File

@@ -634,6 +634,23 @@ $ git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
$ git checkout pr/42 pr-42
```
操作多个仓库的时候可以在Git中设置获取Pull Request的全局选项。
```
git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
```
此时可以在任意仓库中使用以下命令:
```
git fetch origin
```
```
git checkout pr/42
```
[*进一步了解如何检出pull request到本地.*](https://help.github.com/articles/checking-out-pull-requests-locally)
### 提交空改动 :trollface: