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 2acb308 + 29b9f17 commit c3a6ea7Copy full SHA for c3a6ea7
README.ja.md
@@ -627,6 +627,22 @@ $ git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
627
$ git checkout pr/42 pr-42
628
```
629
630
+もしくは様々なリポジトリで作業をするのなら、代わりにグローバルのGit設定で行うことにより、pull requestの取得をグローバルに設定すると良いだろう。
631
+
632
+```bash
633
+git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
634
+```
635
636
+こうすると以下の様な短いコマンドを利用することが可能になる:
637
638
639
+git fetch origin
640
641
642
643
+git checkout pr/42
644
645
646
[*pull requestのチェックアウトについてもっと詳しく*](https://help.github.com/articles/checking-out-pull-requests-locally)
647
648
### 空のコミット :trollface:
0 commit comments