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

Merge pull request #79 from hail2u/ja-translation

Update Ja translation to 0430782
This commit is contained in:
Rafal Chmiel
2014-07-12 10:46:42 +01:00

View File

@@ -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: