From 614a5105b77b25b8f7186743a2189df65e38cee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=B3=AF=20=28Xiaonuo=29?= Date: Wed, 22 Apr 2026 23:33:35 +0800 Subject: [PATCH] =?UTF-8?q?update=2005-gitea-tea:=20fix=20prereq=20referen?= =?UTF-8?q?ce,=20clarify=20GITEA=5FTOKEN=20comes=20from=20cfg=20sync=20--?= =?UTF-8?q?=20=E5=B0=8F=E7=B3=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../references/05-gitea-tea.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/hermes/shazhou-family-onboard/references/05-gitea-tea.md b/hermes/shazhou-family-onboard/references/05-gitea-tea.md index c961b97..b90c87d 100644 --- a/hermes/shazhou-family-onboard/references/05-gitea-tea.md +++ b/hermes/shazhou-family-onboard/references/05-gitea-tea.md @@ -1,5 +1,9 @@ # 05. Gitea 账号 & tea CLI +## 前置 + +- 已完成 02 (cfg CLI) — 需要 `cfg get GITEA_TOKEN` + ## 检查 ```bash @@ -7,7 +11,7 @@ which tea tea login list ``` -✅ 达标:`tea` 可用,login list 显示 `shazhou` 登录条目 +✅ 达标:`tea` 可用,login list 显示 `shazhou` 登录条目且为 default ## 安装 @@ -28,16 +32,21 @@ chmod +x /usr/local/bin/tea ### 登录 Gitea -用 03 步装好的 cfg 拿 token: +GITEA_TOKEN 在 02 步 `cfg sync` 后就有了(shared scope),直接用: ```bash tea login add \ --name shazhou \ --url https://git.shazhou.work \ --token $(cfg get GITEA_TOKEN) \ - --user YOUR_USERNAME + --user YOUR_USERNAME \ + --no-version-check + +tea login default shazhou ``` +YOUR_USERNAME 替换为你的 Gitea 用户名(见下方对照表)。 + ### 注册 SSH 公钥到 Gitea 将 01 步生成的公钥注册上去,以后 git clone 可走 SSH: @@ -80,5 +89,5 @@ ssh -T git@git.shazhou.work 2>&1 ```bash tea repos -tea issues --repo xiaoju/uncaged +tea issues --repo scottwei/shazhou-workshop ```