[PATCH] docs/zh_CN: update git command examples in how-to.rst

Partially applied
From:Dongliang Mu <dzm91@hust.edu.cn>
Date:
Message-ID:<20250616134003.3981866-1-dzm91@hust.edu.cn>
Patch:v1 · 1/1
Language:zh_CN
Patch-ID:4c5d6e56607855f1c2b2966bfce7323c1b860d5c
Files:Documentation/translations/zh_CN/how-to.rst

Patch content 1 changed file

This patch leverages `checkout -b` to shorten branch & checkoutand fix the missing checkout. Signed-off-by: Dongliang Mu <dzm91@hust.edu.cn>--- Documentation/translations/zh_CN/how-to.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/translations/zh_CN/how-to.rst b/Documentation/translations/zh_CN/how-to.rstindex 569b0209385a..0896f13d8b8d 100644--- a/Documentation/translations/zh_CN/how-to.rst+++ b/Documentation/translations/zh_CN/how-to.rst@@ -177,8 +177,7 @@ git和邮箱配置 请执行以下命令,新建开发分支::  	git checkout docs-next-	git branch my-trans-	git checkout my-trans+	git checkout -b my-trans  译文格式要求 ------------@@ -286,7 +285,7 @@ warning 不需要解决:: 然后执行以下命令为补丁追加更改::  	git checkout docs-next-	git branch test-trans+	git checkout -b test-trans-new 	git am 0001-xxxxx.patch 	./scripts/checkpatch.pl 0001-xxxxx.patch 	直接修改您的翻译-- 2.43.0