The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] docs/zh_CN: add docs-next checkout workaround
@ 2026-07-09 15:25 Weijie Yuan
  2026-07-10 13:21 ` Dongliang Mu
  0 siblings, 1 reply; 11+ messages in thread
From: Weijie Yuan @ 2026-07-09 15:25 UTC (permalink / raw)
  To: Alex Shi, Yanteng Si, Dongliang Mu, Jonathan Corbet, Shuah Khan
  Cc: linux-kernel, linux-doc, Weijie Yuan

Hi all,

Since cloning Alex Shi's tree from the HUST mirror may be unstable, as
reported in [1]. I think adding one more option for beginners to get
started might be a good idea.

Thanks,
Weijie

[1] https://lore.kernel.org/linux-doc/4292BADB2022F3A5+5117009.JcJflTAXpt@anka-vmware20-1/

--- >8 ---

The Chinese documentation guide asks contributors to base their work on
the docs-next branch of Alex Shi's tree. However, cloning that tree from
git.kernel.org or mirrors.hust.edu.cn may fail in some network
environments.

Document an alternative workflow: clone Linus Torvalds' tree from a
local mirror, add Alex Shi's tree as another remote, fetch docs-next
from it, and then create a local branch that tracks alexs/docs-next.

Signed-off-by: Weijie Yuan <wy@wyuan.org>
---
 Documentation/translations/zh_CN/how-to.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Documentation/translations/zh_CN/how-to.rst b/Documentation/translations/zh_CN/how-to.rst
index 9ec2384e1e76..fcfe0a4a8be2 100644
--- a/Documentation/translations/zh_CN/how-to.rst
+++ b/Documentation/translations/zh_CN/how-to.rst
@@ -53,6 +53,16 @@ Linux 发行版和简单地使用 Linux 命令行,那么可以迅速开始了
 这是 Alex 开发树的镜像库,每两个小时同步一次上游。如果您了解到更快的 mirror,
 请随时 **添加** 。
 
+或者::
+
+	git clone https://mirrors.tuna.tsinghua.edu.cn/git/linux.git
+	cd linux
+	git remote add alexs https://git.kernel.org/pub/scm/linux/kernel/git/alexs/linux.git/
+	git fetch alexs docs-next:refs/remotes/alexs/docs-next
+	git switch -c docs-next --track alexs/docs-next
+
+这将先用清华源拉取 Linus Torvalds 的开发树,再增量下载中文开发分支中的内容。
+
 命令执行完毕后,您会在当前目录下得到一个 linux 目录,该目录就是您之后的工作
 仓库,请把它放在一个稳妥的位置。
 
-- 
2.55.0.795.g602f6c329a


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

end of thread, other threads:[~2026-07-12 13:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09 15:25 [PATCH] docs/zh_CN: add docs-next checkout workaround Weijie Yuan
2026-07-10 13:21 ` Dongliang Mu
2026-07-10 13:36   ` Weijie Yuan
2026-07-10 13:44     ` Dongliang Mu
2026-07-10 13:57       ` Weijie Yuan
2026-07-10 14:04         ` Dongliang Mu
2026-07-12  4:47         ` Dongliang Mu
2026-07-12  5:45           ` Weijie Yuan
2026-07-12  6:53             ` Weijie Yuan
2026-07-12  8:35             ` Dongliang Mu
2026-07-12 13:42               ` Weijie Yuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox