Skip to content

Commit c73e9ba

Browse files
Update instructions for branch tracking problem (#317)
1 parent 92f1589 commit c73e9ba

1 file changed

Lines changed: 11 additions & 19 deletions

File tree

README.md

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -244,31 +244,23 @@ window.__bookshelf.purgeListItems()
244244

245245
<summary>Running "node go" does not list any branches</summary>
246246

247-
This means there was something wrong when you ran the setup. Try running:
247+
This means there was something wrong when you ran the setup.
248+
249+
> If you made your own fork of `bookshelf` through GitHub, you may have only got
250+
> the `main` branch -- that's the default option
251+
252+
Add a new `upstream` remote
248253

249254
```
250-
node ./scripts/track-branches.js
255+
git remote add upstream https://github.com/kentcdodds/bookshelf.git
251256
```
252257

253-
If you're still not getting the branches, then you can do this manually:
258+
> You might get an `error: remote upstream already exists.` -- no problem!
259+
260+
Track all the branches from that original repository
254261

255262
```
256-
git branch --track "exercises/01-bootstrap" "origin/exercises/01-bootstrap"
257-
git branch --track "exercises/02-styles" "origin/exercises/02-styles"
258-
git branch --track "exercises/03-data-fetching" "origin/exercises/03-data-fetching"
259-
git branch --track "exercises/04-authentication" "origin/exercises/04-authentication"
260-
git branch --track "exercises/05-routing" "origin/exercises/05-routing"
261-
git branch --track "exercises/06-cache-management" "origin/exercises/06-cache-management"
262-
git branch --track "exercises/07-context" "origin/exercises/07-context"
263-
git branch --track "exercises/08-compound-components" "origin/exercises/08-compound-components"
264-
git branch --track "exercises/09-performance" "origin/exercises/09-performance"
265-
git branch --track "exercises/10-render-as-you-fetch" "origin/exercises/10-render-as-you-fetch"
266-
git branch --track "exercises/11-unit-testing" "origin/exercises/11-unit-testing"
267-
git branch --track "exercises/12-testing-hooks-and-components" "origin/exercises/12-testing-hooks-and-components"
268-
git branch --track "exercises/13-integration-testing" "origin/exercises/13-integration-testing"
269-
git branch --track "exercises/14-e2e-testing" "origin/exercises/14-e2e-testing"
270-
271-
git pull --all
263+
git push origin --tags "refs/remotes/upstream/*:refs/heads/*"
272264
```
273265

274266
</details>

0 commit comments

Comments
 (0)