panw 34944518f0 docs: 更新实施计划文档格式和内容
- 添加Claude本地设置文件,允许Bash操作权限
- 将文档中的分隔线从"---"统一改为"***"
- 修复markdown代码块嵌套格式问题
- 调整任务列表格式,移除多余空行
- 修正HTTP链接的markdown格式
- 更新.gitignore文件格式,修复转义字符问题
2026-03-31 17:26:07 +08:00
2026-03-31 16:45:41 +08:00
2026-03-31 16:42:54 +08:00
2026-03-31 16:45:41 +08:00

GitM - Gitea Repository Sync Tool

Cross-platform tool to synchronize all repositories from multiple Gitea servers to local storage.

Features

  • Single binary deployment (frontend embedded)
  • Web UI for management (Vue 3 + Element Plus)
  • SQLite database
  • JWT authentication
  • Scheduled and manual sync
  • Cross-platform (Windows, Linux)

Build

# Build binary with embedded frontend
go build -o bin/gitm .

# Or with CGO for SQLite support
CGO_ENABLED=1 go build -o bin/gitm .

Run

# First-time initialization (set admin password)
./bin/gitm --init

# Start server (default :9000)
./bin/gitm

# Custom address
./bin/gitm --addr :9090

# Custom data directory
./bin/gitm --data /path/to/data

Usage

  1. Initialize: ./bin/gitm --init -- sets admin password
  2. Start: ./bin/gitm -- starts web server
  3. Open browser to http://localhost:9000
  4. Login and add Gitea servers
  5. Discover repos and sync

Development

# Frontend dev server
cd web && npm install && npm run dev

# Backend
go run main.go

# Run tests
go test ./internal/gitea/... -v
CGO_ENABLED=1 go test ./internal/database/... -v
Description
No description provided
Readme 125 KiB
Languages
Go 62.3%
Vue 29.4%
TypeScript 7.3%
Makefile 0.6%
HTML 0.4%