From 2eac29ee27f77aa4b681d1b4fe570aca6de40609 Mon Sep 17 00:00:00 2001 From: doudou0720 <98651603+doudou0720@users.noreply.github.com> Date: Sat, 18 Oct 2025 15:19:30 +0800 Subject: [PATCH] Add ssh.github.com:443 --- src/dev/get-started/development-plugins.md | 18 ++++++++++++++++++ src/dev/get-started/development.md | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/src/dev/get-started/development-plugins.md b/src/dev/get-started/development-plugins.md index 4af798c..193290e 100644 --- a/src/dev/get-started/development-plugins.md +++ b/src/dev/get-started/development-plugins.md @@ -36,6 +36,12 @@ git clone https://github.com/ClassIsland/ClassIsland.git git clone git@github.com:ClassIsland/ClassIsland.git ``` +如果你不能访问github.com,你也可以尝试: + +```shell +git clone ssh://git@ssh.github.com:443/ClassIsland/ClassIsland.git +``` + @tab GitHub CLI ```shell @@ -56,6 +62,18 @@ cd ClassIsland git submodule update --init --recursive ``` +::: note 如果您操作超时: +可以更改 `.gitmodules` 文件为: +``` +[submodule "vendors/EdgeTtsSharp"] + path = vendors/EdgeTtsSharp + url = ssh://git@ssh.github.com:443/ClassIsland/EdgeTtsSharp.git +``` +再次尝试拉取。 +请注意,该操作需要您拥有并正确配置SSH Key方可使用。 +请在提交代码前撤回对相关文件的更改。 +::: + 克隆仓库后,默认处于 master 分支上,对应 ClassIsland 的稳定版本。建议在稳定版本的基础上开发插件,以获得较好的兼容性。如果您想签出到特定版本上,请使用对应版本的标签名(如 `1.5.0.2`)。 ``` shell diff --git a/src/dev/get-started/development.md b/src/dev/get-started/development.md index 71d2f24..4253368 100644 --- a/src/dev/get-started/development.md +++ b/src/dev/get-started/development.md @@ -41,6 +41,12 @@ git clone https://github.com/ClassIsland/ClassIsland.git git clone git@github.com:ClassIsland/ClassIsland.git ``` +如果你不能访问github.com,你也可以尝试: + +```shell +git clone ssh://git@ssh.github.com:443/ClassIsland/ClassIsland.git +``` + @tab GitHub CLI ```shell @@ -58,6 +64,18 @@ gh repo clone ClassIsland/ClassIsland git submodule update --init --recursive ``` +::: note 如果您操作超时: +可以更改 `.gitmodules` 文件为: +``` +[submodule "vendors/EdgeTtsSharp"] + path = vendors/EdgeTtsSharp + url = ssh://git@ssh.github.com:443/ClassIsland/EdgeTtsSharp.git +``` +再次尝试拉取。 +请注意,该操作需要您拥有并正确配置SSH Key方可使用。 +请在提交代码前撤回对相关文件的更改。 +::: + ## 编译与运行 对于 Windows PC ,在首次编译运行时,需要先手动构建一次。