Skip to content

Commit

Permalink
Meta: simplify advice for pr/* branches
Browse files Browse the repository at this point in the history
Also fix the indentation.
  • Loading branch information
foolip authored and sideshowbarker committed Oct 4, 2016
1 parent fbbc480 commit 0728e5a
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions TEAM.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 0728e5a

Please sign in to comment.