From 6ac30813211abfe7c727a6ba1aa458471bcedda6 Mon Sep 17 00:00:00 2001 From: Myfro9 <36755290+Myfro9@users.noreply.github.com> Date: Thu, 15 Oct 2026 02:00:16 +0800 Subject: [PATCH] sync: HP_BOWEI 2026-10-15 --- tools-sync/SKILL.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools-sync/SKILL.md b/tools-sync/SKILL.md index 920edf7..2457eb7 100644 --- a/tools-sync/SKILL.md +++ b/tools-sync/SKILL.md @@ -33,10 +33,13 @@ description: 在本机统一同步并配置 Claude Code / Codex / OpenCode 的 s - **机器相关的参数不进 git**。每台电脑的软件安装路径、IP、账号等都记录在 `~\skills_env.md`(用户主目录下,天然在两个仓库检出之外,不会被 git 同步)。 skills 里引用参数时写"见 ~\skills_env.md 的 XXX 条目",不写死路径。 -- **凭据不写进任何会被同步的文件**。git.rpchannel.com 的凭据优先用 Windows - 凭据管理器(`cmdkey /list` 里应有 `git:http://git.rpchannel.com` 条目); - 只有在新机器首次配置时,才从 `~\skills_env.md` 读取用户名/密码完成首次 - clone(之后 credential helper 会缓存)。 +- **凭据不写进任何会被同步的文件**。gitea(tailscale 地址 `100.88.102.18:3000`)的凭据优先用 + Windows 凭据管理器(`cmdkey /list` 里应有 `git:http://100.88.102.18:3000` 条目); + 只有在新机器首次配置、或 push 报 `could not read Username` 时,才从 `~\skills_env.md` + 读取用户名/密码,用 `git credential-manager store`(stdin 给 protocol/host/username/password) + 写入凭据管理器,**不要**把密码拼进 remote URL。换地址后 origin 要同步改: + `git -C ~\.claude\skills remote set-url origin `。 + push/fetch 报 403 且连根页面都 403,多半是还在走已关闭的公网地址,先查 remote URL。 完整跑一遍下面各阶段(阶段 2 之后还有 2.5 OpenCode,阶段 5 之后是报告)就是一次 "同步"。用户只要求其中一部分(比如"把 skills 推上去")时,跑对应阶段即可,但