Merge pull request #105 from Plsr/master

Use 'branch' instead of 'checkout -b'
This commit is contained in:
Richard Littauer 2017-03-29 16:13:45 -04:00 committed by GitHub
commit f3428ed7af
1 changed files with 1 additions and 3 deletions

View File

@ -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: