From 081d5777debc2231b8123eb07e05632b24bd362c Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 3 Nov 2026 13:58:52 -0800 Subject: [PATCH] branch doc: consistently promote 'switch' When 328c6cb853 (doc: promote "git switch", 2019-03-29) updated an example in git-branch documentation, it made an inconsistent change to turn "git checkout my2.6.14" command in an example into "git switch my2.6.14", without updating a comment that talks about a shorthand to create and checkout the newly created branch at the same time, which still talked about "checkout -b ". Update the latter to talk about "git switch -c" for consistency. Signed-off-by: Junio C Hamano --- Documentation/git-branch.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/git-branch.adoc b/Documentation/git-branch.adoc index bfdf459329..a803c24858 100644 --- a/Documentation/git-branch.adoc +++ b/Documentation/git-branch.adoc @@ -411,7 +411,7 @@ $ git switch my2.6.14 ------------ + <1> This step and the next one could be combined into a single step with - "checkout -b my2.6.14 v2.6.14". + "git switch -c my2.6.14 v2.6.14". Delete an unneeded branch:: +