# Repo Sync

> Sync world-cup repo from GitHub, update nginx-served HTML, and reload. Used when pulling latest changes or deploying updates.

- Skill: `piaoxuemoli/repo-sync-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add piaoxuemoli/repo-sync-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/piaoxuemoli/repo-sync-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: piaoxuemoli (https://skillmd.com/u/piaoxuemoli)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/piaoxuemoli/repo-sync-2

---


# Repo Sync

同步 GitHub 仓库并部署到 nginx。

## When to Use

| 场景 | 动作 |
|------|------|
| 用户说 "部署" / "更新页面" | git pull → cp → reload |
| 用户说 "同步代码" | git pull |
| 部署新投注方案后 | cp html → reload |

## 执行流程

```bash
cd ~/world-cup && git pull origin main
cp 世界杯预测.html index.html
nginx -s reload
```

验证：`curl -sI http://localhost:8080/ | head -5`

## 注意事项

- 确保 `index.html` 与 `世界杯预测.html` 始终同步
- nginx 以 root 用户运行，配置在 `/etc/nginx/conf.d/worldcup.conf`

