Skip to content

Commit d93d04b

Browse files
authored
Update README.md
1 parent 03ca764 commit d93d04b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,41 @@ You can look through the issues (which should be up-to-date on who is working on
3030
[ard-demo]: https://benfeely.github.io/angular-react/demo
3131
[getting-started]: https://benfeely.github.io/angular-react/docs/getting-started
3232
[fab]: https://developer.microsoft.com/en-us/fabric
33+
34+
### Pull Requests
35+
Locate the section for your github remote in the `.git/config` file. It looks like this:
36+
37+
```
38+
[remote "origin"]
39+
fetch = +refs/heads/*:refs/remotes/origin/*
40+
url = git@github.com:joyent/node.git
41+
```
42+
43+
Now add the line `fetch = +refs/pull/*/head:refs/remotes/origin/pr/*` to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
44+
45+
```
46+
[remote "origin"]
47+
fetch = +refs/heads/*:refs/remotes/origin/*
48+
url = git@github.com:joyent/node.git
49+
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
50+
```
51+
52+
Now fetch all the pull requests:
53+
54+
```
55+
$ git fetch origin
56+
From github.com:joyent/node
57+
* [new ref] refs/pull/1000/head -> origin/pr/1000
58+
* [new ref] refs/pull/1002/head -> origin/pr/1002
59+
* [new ref] refs/pull/1004/head -> origin/pr/1004
60+
* [new ref] refs/pull/1009/head -> origin/pr/1009
61+
...
62+
```
63+
64+
To check out a particular pull request:
65+
66+
```
67+
$ git checkout pr/999
68+
Branch pr/999 set up to track remote branch pr/999 from origin.
69+
Switched to a new branch 'pr/999'
70+
```

0 commit comments

Comments
 (0)