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 <clio-agent@sisyphuslabs.ai>
This commit is contained in:
严浩
2026-03-08 18:35:38 +08:00
parent 596ea93178
commit f407de1844
2 changed files with 14 additions and 8 deletions

View File

@@ -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

View File

@@ -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. 验证