mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-06-16 12:54:01 -03:00
Use 'branch' instead of 'checkout -b'
This commit is contained in:
@ -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:
|
Create the new branch while remaining on master:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
(master)$ git checkout -b my-branch
|
(master)$ git branch my-branch
|
||||||
(my-branch)$ git checkout master
|
|
||||||
(master)$
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Reset the branch master to the previous commit:
|
Reset the branch master to the previous commit:
|
||||||
|
Reference in New Issue
Block a user