From 29b9f17532a0cae08c8fb9a7f6b19767bee29238 Mon Sep 17 00:00:00 2001 From: Kyo Nagashima Date: Sat, 12 Jul 2014 18:31:31 +0900 Subject: [PATCH] Update Ja translation to 0430782 --- README.ja.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.ja.md b/README.ja.md index f41d920..0fa7a34 100644 --- a/README.ja.md +++ b/README.ja.md @@ -627,6 +627,22 @@ $ git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*' $ git checkout pr/42 pr-42 ``` +もしくは様々なリポジトリで作業をするのなら、代わりにグローバルのGit設定で行うことにより、pull requestの取得をグローバルに設定すると良いだろう。 + +```bash +git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" +``` + +こうすると以下の様な短いコマンドを利用することが可能になる: + +```bash +git fetch origin +``` + +```bash +git checkout pr/42 +``` + [*pull requestのチェックアウトについてもっと詳しく*](https://help.github.com/articles/checking-out-pull-requests-locally) ### 空のコミット :trollface: