feat(git proxy): start 默认写 git http(s).proxy,stop 自动恢复,restart 继承状态(CI 用 --no-set-git)
This commit is contained in:
@@ -5,17 +5,18 @@
|
||||
```bash
|
||||
mytoolkit git proxy list
|
||||
mytoolkit git proxy status # 全部守护进程 + git config
|
||||
mytoolkit git proxy start fastgithub # 推荐:后台 + Parallels socat(默认不改 git config)
|
||||
mytoolkit git proxy stop # 停「当前」
|
||||
mytoolkit git proxy start fastgithub # 推荐:后台 + Parallels socat(默认设 git http(s).proxy)
|
||||
mytoolkit git proxy stop # 停「当前」,并恢复 start 前的 git proxy 旧值
|
||||
mytoolkit git proxy stop fastgithub
|
||||
mytoolkit git proxy restart # 重启「当前」
|
||||
mytoolkit git proxy restart # 重启「当前」,git 行为继承重启前的状态
|
||||
mytoolkit git proxy start --no-set-git fastgithub # 仅拉 daemon,不动全局 git config(CI 主机)
|
||||
mytoolkit git proxy set fastgithub # 仅写 git http(s).proxy
|
||||
mytoolkit git proxy unset
|
||||
mytoolkit git proxy run fastgithub # 旧前台模式(设 git + Ctrl-C 清理);CI 主机请用 start
|
||||
mytoolkit git proxy run fastgithub # 旧前台模式(设 git + Ctrl-C 清理)
|
||||
```
|
||||
|
||||
- `start` / `stop` / `restart`:端口 + PID(`lsof`),状态文件 `~/.mytoolkit/run/proxy-current.json`
|
||||
- CI:主机 `start fastgithub`;job 用 `HEYUE_CI_GIT_PROXY=1` / `XIAOHE_CI_GIT_PROXY=1`(勿依赖全局 git proxy)
|
||||
- `start` / `stop` / `restart`:端口 + PID(`lsof`),状态文件 `~/.mytoolkit/run/proxy-current.json`;`start` 默认写全局 git http(s).proxy,`stop` 按状态文件自动恢复旧值(`--set-git/--no-set-git` 可显式切换)
|
||||
- CI:主机 `start --no-set-git fastgithub`(daemon only,勿动全局 git config);job 用 `HEYUE_CI_GIT_PROXY=1` / `XIAOHE_CI_GIT_PROXY=1`(勿依赖全局 git proxy)
|
||||
- Parallels guest 需 `brew install socat`;可选 `XIAOHE_CI_PARALLELS_HOST_IP`
|
||||
|
||||
## 新机器安装 FastGitHub
|
||||
|
||||
Reference in New Issue
Block a user