Skip to content

Commit 31df833

Browse files
mudongliangAlex Shi
authored andcommitted
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>
1 parent f7a57c9 commit 31df833

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Documentation/translations/zh_CN/how-to.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ Git 和邮箱配置
185185
请执行以下命令,新建开发分支::
186186

187187
git checkout docs-next
188-
git branch my-trans
189-
git checkout my-trans
188+
git checkout -b my-trans
190189

191190
译文格式要求
192191
------------
@@ -298,7 +297,7 @@ warning 不需要解决::
298297
然后执行以下命令为补丁追加更改::
299298

300299
git checkout docs-next
301-
git branch test-trans
300+
git checkout -b test-trans-new
302301
git am 0001-xxxxx.patch
303302
./scripts/checkpatch.pl 0001-xxxxx.patch
304303
# 直接修改您的翻译

0 commit comments

Comments
 (0)