From f407de1844efd0060033c895b1fe2ec084e4da1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sun, 8 Mar 2026 18:35:38 +0800 Subject: [PATCH] Update container path documentation Align the docs with the reorganized project layout so container setup commands match the paths users actually run. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- COMPARISON.md | 6 +++--- README.md | 16 +++++++++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/COMPARISON.md b/COMPARISON.md index ba99f0c..5eca402 100644 --- a/COMPARISON.md +++ b/COMPARISON.md @@ -14,7 +14,7 @@ | Host 白名单 | 支持 `GIT_CRED_PROXY_ALLOWED_HOSTS` | 不支持 | | Unix Socket | 不支持 | 支持(macOS 下不可用) | | 生命周期管理 | start/stop/status 脚本 | 手动启停 | -| 容器配置脚本 | `configure-container.sh` 一键配置 | 手动编辑 gitconfig | +| 容器配置脚本 | `container/configure-git.sh` 一键配置 | 手动编辑 gitconfig | | 后台运行 | `start.sh` 自动后台运行 | 前台运行,需保持终端 | | 依赖 | 零依赖 | npm 包,有构建产物 | @@ -38,10 +38,10 @@ ```bash # 宿主机 -./start.sh +./host/start.sh # 容器 -/workspaces/host-git-cred-proxy/configure-container.sh +/workspaces/host-git-cred-proxy/container/configure-git.sh ``` ### git-credential-forwarder diff --git a/README.md b/README.md index 4d3592e..43de2bd 100644 --- a/README.md +++ b/README.md @@ -84,23 +84,29 @@ GIT_CRED_PROXY_PROTOCOLS=https,http ./host/start.sh ### 3. 容器里配置 Git helper -全局生效: +如果你当前就在挂载后的 `host-git-cred-proxy` 项目根目录,直接执行: ```bash -/workspaces/host-git-cred-proxy/container/configure-git.sh +./container/configure-git.sh ``` -只作用于当前仓库: +如果你想只作用于当前仓库: ```bash cd /path/to/your/repo -/workspaces/host-git-cred-proxy/container/configure-git.sh --local +/path/to/host-git-cred-proxy/container/configure-git.sh --local ``` 或者显式指定仓库: ```bash -/workspaces/host-git-cred-proxy/container/configure-git.sh --local --repo /workspaces/your-repo +/path/to/host-git-cred-proxy/container/configure-git.sh --local --repo /path/to/your-repo +``` + +如果这个项目在容器里不是当前目录,而是挂载在固定位置,例如 `/opt/host-git-cred-proxy`,那就执行: + +```bash +/opt/host-git-cred-proxy/container/configure-git.sh ``` ### 4. 验证