linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] docs/zh_CN: update git command examples in how-to.rst
@ 2025-06-16 13:40 Dongliang Mu
  2025-06-17  1:44 ` Yanteng Si
  0 siblings, 1 reply; 3+ messages in thread
From: Dongliang Mu @ 2025-06-16 13:40 UTC (permalink / raw)
  To: Alex Shi, Yanteng Si, Dongliang Mu, Jonathan Corbet
  Cc: linux-doc, linux-kernel

This patch leverages `checkout -b` to shorten branch & checkout
and 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.rst
index 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] docs/zh_CN: update git command examples in how-to.rst
  2025-06-16 13:40 [PATCH] docs/zh_CN: update git command examples in how-to.rst Dongliang Mu
@ 2025-06-17  1:44 ` Yanteng Si
  2025-06-18 12:59   ` Alex Shi
  0 siblings, 1 reply; 3+ messages in thread
From: Yanteng Si @ 2025-06-17  1:44 UTC (permalink / raw)
  To: Dongliang Mu, Alex Shi, Jonathan Corbet; +Cc: linux-doc, linux-kernel


在 6/16/25 9:40 PM, Dongliang Mu 写道:
> 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>


Thanks,

Yanteng

> ---
>   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.rst
> index 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
>   	直接修改您的翻译

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] docs/zh_CN: update git command examples in how-to.rst
  2025-06-17  1:44 ` Yanteng Si
@ 2025-06-18 12:59   ` Alex Shi
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Shi @ 2025-06-18 12:59 UTC (permalink / raw)
  To: Yanteng Si
  Cc: Dongliang Mu, Alex Shi, Jonathan Corbet, linux-doc, linux-kernel

Applied! Thanks!

Yanteng Si <si.yanteng@linux.dev> 于2025年6月17日周二 09:44写道:
>
>
> 在 6/16/25 9:40 PM, Dongliang Mu 写道:
> > 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>
>
>
> Thanks,
>
> Yanteng
>
> > ---
> >   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.rst
> > index 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
> >       直接修改您的翻译

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-18 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-16 13:40 [PATCH] docs/zh_CN: update git command examples in how-to.rst Dongliang Mu
2025-06-17  1:44 ` Yanteng Si
2025-06-18 12:59   ` Alex Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).