Skip to content

Commit 603b31c

Browse files
author
Sean Wheeler
authored
fix new branch cmd
1 parent c13b0a2 commit 603b31c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

GitDocs/Common Git tasks.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,11 @@ This sections describe several common tasks you will perform to accomplish work.
7272
2. Check out the working branch
7373

7474
```
75-
git checkout newbranch
75+
git checkout -B newbranch
7676
```
7777

78-
This tells git to switch to the working branch context. The command prompt in the Git Shell
79-
should show this branch name. Git also updates the files on disk to match the state of this
80-
branch.
78+
  This tells git create a new branch and switch to that branch context. The command prompt in the Git Shell
79+
should show this branch name.
8180

8281
3. Make additions and changes to your content.
8382

0 commit comments

Comments
 (0)