Skip to content

Commit

Permalink
Use 'branch' instead of 'checkout -b'
Browse files Browse the repository at this point in the history
  • Loading branch information
Plsr committed Mar 29, 2017
1 parent a5d7eea commit 5af92ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5af92ee

Please sign in to comment.