From d5fed891b66d37bdc5eff75479c732da929c71c9 Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Thu, 23 Jun 2022 08:57:48 -0700 Subject: [PATCH] Insert missing git fetch --- workflows-fork-and-clone.Rmd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/workflows-fork-and-clone.Rmd b/workflows-fork-and-clone.Rmd index 25b4885..d5054ef 100644 --- a/workflows-fork-and-clone.Rmd +++ b/workflows-fork-and-clone.Rmd @@ -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: