Skip to content

Commit 5186e4b

Browse files
authored
fix new branch git command in readme
1 parent 54bd116 commit 5186e4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ git branch
1717
```
1818
You should only see a `main` branch right now. To create a new branch named `learn-html` run
1919
```
20-
git branch -c learn-html
20+
git branch learn-html
2121
```
2222
Now list all the repository branches again
2323
```
2424
git branch
2525
```
26-
Do you see the new `learn-html` branch? Notice that the `main` branch is starred, which means that we're currently working within it. Creating a new branch with `git branch -c` will not automatically switch you into it.
26+
Do you see the new `learn-html` branch? Notice that the `main` branch is starred, which means that we're currently working within it. Creating a new branch with `git branch` will not automatically switch you into it.
2727

2828
To switch into the `learn-html` branch, run
2929
```

0 commit comments

Comments
 (0)