From f9de1883e5b85a239b02573db11b2e027ba99c54 Mon Sep 17 00:00:00 2001 From: James Skemp Date: Fri, 5 May 2023 04:46:15 -0500 Subject: [PATCH] Add switch way to create a new branch --- src/branching.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/branching.md b/src/branching.md index f5d6133..2b589a4 100644 --- a/src/branching.md +++ b/src/branching.md @@ -20,6 +20,7 @@ git checkout @{-1} # Checkout and switch to a new branch. git checkout -b my_new_branch +git switch -c my_new_branch # Push the new branch to a remote. git push -u origin my_new_branch