Skip to content

Commit 0728e5a

Browse files
foolipsideshowbarker
authored andcommitted
Meta: simplify advice for pr/* branches
Also fix the indentation.
1 parent fbbc480 commit 0728e5a

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

TEAM.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,12 @@ To do all that, use these steps:
2727

2828
```
2929
[remote "origin"]
30-
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
31-
```
32-
33-
If you change your mind later about globally enabling that behavior, you can disable it by removing those lines.
34-
35-
* 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:
36-
37-
```diff
38-
[remote "origin"]
39-
url = git@github.com:whatwg/html.git
40-
fetch = +refs/heads/*:refs/remotes/origin/*
41-
+ fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
30+
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
4231
```
4332

44-
(Omit the `+` sign; it’s just `diff` syntax to get the markdown viewer to highlight the line.)
33+
If you change your mind later about globally enabling that behavior, you can disable it by removing those lines.
34+
35+
* Alternatively, to enable automatic fetch of branches in PRs from forks **just for this repo**, omit `--global` from the above command.
4536

4637
2. Run `git fetch` or `git pull` to do the initial fetch of all branches for current PRs.
4738

0 commit comments

Comments
 (0)