From 762bd3418fa908fb5baa132a6b1359770d331cfd Mon Sep 17 00:00:00 2001 From: Benji Fisher Date: Sun, 7 Apr 2024 12:19:24 -0400 Subject: [PATCH] MyFirstContribution: use switch for changing branches Use "git switch" instead of "git checkout" for changing branches. Signed-off-by: Benji Fisher --- Documentation/MyFirstContribution.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/MyFirstContribution.txt b/Documentation/MyFirstContribution.txt index f06563e9817460..66f38a70557c24 100644 --- a/Documentation/MyFirstContribution.txt +++ b/Documentation/MyFirstContribution.txt @@ -122,7 +122,7 @@ branch of the upstream project. Create the `psuh` branch you will use for development like so: ---- -$ git checkout -b psuh origin/master +$ git switch -c psuh origin/master ---- We'll make a number of commits here in order to demonstrate how to send a topic @@ -878,7 +878,7 @@ on `master`, so go ahead and update as shown below, or using your preferred workflow. ---- -$ git checkout master +$ git switch master $ git pull -r $ git rebase master psuh ---- @@ -1139,7 +1139,7 @@ We'll reuse our `psuh` topic branch for v2. Before we make any changes, we'll mark the tip of our v1 branch for easy reference: ---- -$ git checkout psuh +$ git switch psuh $ git branch psuh-v1 ----