mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-16 20:05:13 -05:00
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>
This commit is contained in:
@@ -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
|
||||
# 直接修改您的翻译
|
||||
|
||||
Reference in New Issue
Block a user