Skip to content

Commit

Permalink
Insert missing git fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Jun 23, 2022
1 parent 2338fe5 commit d5fed89
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions workflows-fork-and-clone.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ This is desirable so that a simple `git pull` pulls **from the source repo**, no
It also means a simple `git push` will (attempt to) push to the source repo, which will almost always be rejected since you probably do not have permission.
This failure will alert you to the fact that you're doing something questionable, while it's still easy to back out.

First, fetch info for the `upstream` remote.
This is especially important if you just configured `upstream` for the first time.

``` bash
git fetch upstream
```

The two commands below do the same thing; the first is just shorthand for the second.
Do this with command line Git in a shell:

Expand Down

0 comments on commit d5fed89

Please sign in to comment.