Skip to content

Commit 1cb9415

Browse files
authored
Branching: Add a note about "git checkout -b" (#1182)
Branching: Add a note about "git checkout -b"
2 parents 7338c76 + 2b81e2d commit 1cb9415

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

book/03-git-branching/sections/nutshell.asc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,9 @@ Also, because we're recording the parents when we commit, finding a proper merge
180180
These features help encourage developers to create and use branches often.
181181

182182
Let's see why you should do so.
183+
184+
[NOTE]
185+
.Creating a new branch and switching to it at the same time
186+
====
187+
It's typical to create a new branch and want to switch to that new branch at the same time -- this can be done in one operation with `git checkout -b <newbranchname>`.
188+
====

0 commit comments

Comments
 (0)