-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editorial: simplify advice for pr/* branches
Also fix the indentation.
- Loading branch information
Showing
1 changed file
with
4 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,21 +27,12 @@ To do all that, use these steps: | |
|
||
``` | ||
[remote "origin"] | ||
fetch = +refs/pull/*/head:refs/remotes/origin/pr/* | ||
``` | ||
|
||
If you change your mind later about globally enabling that behavior, you can disable it by removing those lines. | ||
|
||
* Alternatively, to enable automatic fetch of branches in PRs from forks **just for this repo**, make the following addition to your `.git/config` file in this directory: | ||
|
||
```diff | ||
[remote "origin"] | ||
url = [email protected]:whatwg/html.git | ||
fetch = +refs/heads/*:refs/remotes/origin/* | ||
+ fetch = +refs/pull/*/head:refs/remotes/origin/pr/* | ||
fetch = +refs/pull/*/head:refs/remotes/origin/pr/* | ||
``` | ||
|
||
(Omit the `+` sign; it’s just `diff` syntax to get the markdown viewer to highlight the line.) | ||
If you change your mind later about globally enabling that behavior, you can disable it by removing those lines. | ||
|
||
* Alternatively, to enable automatic fetch of branches in PRs from forks **just for this repo**, omit `--global` from the above command. | ||
|
||
2. Run `git fetch` or `git pull` to do the initial fetch of all branches for current PRs. | ||
|
||
|