aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongliang Mu <dzm91@hust.edu.cn>2025-06-18 20:53:10 +0800
committerAlex Shi <alexs@kernel.org>2025-07-06 21:13:27 +0800
commit31df8330ee3f161e589896aeca0cbf5a5edcd5db (patch)
tree3df110ea3da3ca824d435b8252ebd1148dc06a54
parentDocs/zh_CN: Translate vxlan.rst to Simplified Chinese (diff)
downloadlinux-31df8330ee3f161e589896aeca0cbf5a5edcd5db.tar.gz
linux-31df8330ee3f161e589896aeca0cbf5a5edcd5db.zip
docs/zh_CN: update git command examples in how-to.rst
This patch leverages `checkout -b` to shorten branch & checkout and fix the missing checkout. Signed-off-by: Dongliang Mu <dzm91@hust.edu.cn> Acked-by: Yanteng Si <si.yanteng@linux.dev> Signed-off-by: Alex Shi <alexs@kernel.org>
-rw-r--r--Documentation/translations/zh_CN/how-to.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/translations/zh_CN/how-to.rst b/Documentation/translations/zh_CN/how-to.rst
index fa1dc46c2b4a..ddd99c0f9b4d 100644
--- a/Documentation/translations/zh_CN/how-to.rst
+++ b/Documentation/translations/zh_CN/how-to.rst
@@ -185,8 +185,7 @@ Git 和邮箱配置
请执行以下命令,新建开发分支::
git checkout docs-next
- git branch my-trans
- git checkout my-trans
+ git checkout -b my-trans
译文格式要求
------------
@@ -298,7 +297,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
# 直接修改您的翻译