mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-13 03:13:58 +02:00
added quotes to pullrequest fetches
This commit is contained in:
@@ -94,7 +94,7 @@ This closes the issue and references the closing commit.
|
|||||||
If you want to check out pull request locally, you can fetch it using that command:
|
If you want to check out pull request locally, you can fetch it using that command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git fetch origin +refs/pull/*/head:refs/pull/*
|
$ git fetch origin '+refs/pull/*/head:refs/pull/*'
|
||||||
```
|
```
|
||||||
|
|
||||||
then, checkout pr (i.e. 42) using
|
then, checkout pr (i.e. 42) using
|
||||||
@@ -106,7 +106,7 @@ $ git checkout refs/pull/42
|
|||||||
Alternatively, you can fetch them as remote branches:
|
Alternatively, you can fetch them as remote branches:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git fetch origin +refs/pull/*/head:refs/remotes/origin/pr/*
|
$ git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
|
||||||
```
|
```
|
||||||
|
|
||||||
and checkout as
|
and checkout as
|
||||||
|
Reference in New Issue
Block a user