From 69f0c769c57bab1db688bf37cd026cf436ddef9d Mon Sep 17 00:00:00 2001 From: Tony Xue Date: Sat, 12 Jul 2014 18:24:55 +0800 Subject: [PATCH] zh-cn update to 2acb308 --- README.zh-cn.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.zh-cn.md b/README.zh-cn.md index c7f55ce..2c72114 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -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: