From 2b81e2d639becbdfcc2a6c4c2c4821a941125f52 Mon Sep 17 00:00:00 2001 From: "Robert P. J. Day" Date: Sat, 16 Feb 2019 01:58:24 -0500 Subject: [PATCH] Branching: Add a note about "git checkout -b" Signed-off-by: Robert P. J. Day --- book/03-git-branching/sections/nutshell.asc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/book/03-git-branching/sections/nutshell.asc b/book/03-git-branching/sections/nutshell.asc index 1724caa2a..29eb49792 100644 --- a/book/03-git-branching/sections/nutshell.asc +++ b/book/03-git-branching/sections/nutshell.asc @@ -180,3 +180,9 @@ Also, because we're recording the parents when we commit, finding a proper merge These features help encourage developers to create and use branches often. Let's see why you should do so. + +[NOTE] +.Creating a new branch and switching to it at the same time +==== +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 `. +====