Checklist for new/existing Hermes agents: - 00: Self-unbind (approvals/redact/tirith/allowlist/guard) - 01-08: SSH, Git, Gitea, cfg, Tailscale, family members, Hermes config, skills sync - Includes self-check.sh for quick validation
67 lines
1.2 KiB
Markdown
67 lines
1.2 KiB
Markdown
# 03. Gitea 账号 & tea CLI
|
|
|
|
## 检查
|
|
|
|
```bash
|
|
# tea 是否安装
|
|
which tea
|
|
|
|
# 是否已登录
|
|
tea login list
|
|
```
|
|
|
|
✅ 达标:`tea` 可用,login list 显示 `shazhou` 登录条目,URL 为 `https://git.shazhou.work`
|
|
|
|
## 安装
|
|
|
|
### 安装 tea
|
|
|
|
```bash
|
|
# macOS
|
|
brew install tea
|
|
|
|
# Linux (amd64)
|
|
curl -sL https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-amd64 -o /usr/local/bin/tea
|
|
chmod +x /usr/local/bin/tea
|
|
|
|
# Linux (arm64)
|
|
curl -sL https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-arm64 -o /usr/local/bin/tea
|
|
chmod +x /usr/local/bin/tea
|
|
```
|
|
|
|
### 登录 Gitea
|
|
|
|
需要先在 Gitea Web UI 创建一个 API Token:
|
|
`https://git.shazhou.work/user/settings/applications`
|
|
|
|
```bash
|
|
tea login add \
|
|
--name shazhou \
|
|
--url https://git.shazhou.work \
|
|
--token YOUR_GITEA_TOKEN \
|
|
--user YOUR_USERNAME
|
|
```
|
|
|
|
### Gitea 账号对照表
|
|
|
|
| Gitea 用户 | 家族成员 |
|
|
|------------|----------|
|
|
| scottwei | 主人沙洲 |
|
|
| xiaoju | 小橘 🍊 |
|
|
| xingyue | 星月 🌙 |
|
|
| xiaomo | 小墨 🖤 |
|
|
| xiaonuo | 小糯 🍡 |
|
|
| tuanzi | 团子 🐰 |
|
|
| luming | 鹿鸣 🦌 |
|
|
| aobing | 敖丙 🐉 |
|
|
|
|
## 验证
|
|
|
|
```bash
|
|
# 列出仓库
|
|
tea repos
|
|
|
|
# 列出某个仓库的 issues
|
|
tea issues --repo xiaoju/uncaged
|
|
```
|