From 5af92eed170cdcd2efb959a29e395c2978923405 Mon Sep 17 00:00:00 2001 From: plsr Date: Wed, 29 Mar 2017 11:55:42 +0200 Subject: [PATCH] Use 'branch' instead of 'checkout -b' --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 2119430..c4e5cca 100644 --- a/README.md +++ b/README.md @@ -364,9 +364,7 @@ One way of resetting to match origin (to have the same as what is on the remote) Create the new branch while remaining on master: ```sh -(master)$ git checkout -b my-branch -(my-branch)$ git checkout master -(master)$ +(master)$ git branch my-branch ``` Reset the branch master to the previous commit: