docs: 添加双推脚本与工作日志 | Gitea+GitHub 同步
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
18
scripts/sync_to_gitea_github.sh
Executable file
18
scripts/sync_to_gitea_github.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# ============================================
|
||||
# 工作手机 SDK → Gitea + GitHub 双推
|
||||
# 用法:在项目根目录执行 bash scripts/sync_to_gitea_github.sh
|
||||
# ============================================
|
||||
REPO_DIR="/Users/karuo/Documents/开发/2、私域银行/工作手机"
|
||||
cd "$REPO_DIR" || exit 1
|
||||
|
||||
# 提交变更
|
||||
git add -A
|
||||
if git diff --cached --quiet; then
|
||||
echo "无变更,跳过"
|
||||
exit 0
|
||||
fi
|
||||
git commit -m "chore: $(date '+%Y-%m-%d %H:%M') 同步 | 工作手机 SDK 更新"
|
||||
# 推送(github 优先,gitea 需先创建仓库)
|
||||
git push github main 2>/dev/null && echo "✅ GitHub 推送成功" || echo "⚠️ GitHub 推送失败"
|
||||
git push gitea main 2>/dev/null && echo "✅ Gitea 推送成功" || echo "⚠️ Gitea: 需先在 open.quwanzhi.com 创建 fnvtk/workphone-sdk 仓库"
|
||||
@@ -5,6 +5,24 @@
|
||||
|
||||
---
|
||||
|
||||
### 2026-02-24 | 工作手机项目上传 Gitea + GitHub
|
||||
|
||||
**执行人**: 阿服
|
||||
**本次完成**:
|
||||
- [x] 初始化 Git 仓库,配置 .gitignore(排除 github-repos、.gradle、app/build、.env 等)
|
||||
- [x] 首次提交(230 文件)
|
||||
- [x] 创建 GitHub 私有仓库 fnvtk/workphone-sdk 并推送成功
|
||||
- [x] 配置 Gitea 远程 fnvtk/workphone-sdk
|
||||
- [ ] Gitea 推送:需先在 open.quwanzhi.com 手动创建仓库(Push to create 未开启)
|
||||
|
||||
**仓库**:
|
||||
- GitHub: https://github.com/fnvtk/workphone-sdk
|
||||
- Gitea: http://open.quwanzhi.com:3000/fnvtk/workphone-sdk(创建后可推送)
|
||||
|
||||
**同步脚本**: scripts/sync_to_gitea_github.sh
|
||||
|
||||
---
|
||||
|
||||
### 2026-02-10 | 机擎复刻 Frida 与奥创的管理与注入 — 实现路径
|
||||
|
||||
**执行人**: 机擎(阿机/阿桥)
|
||||
|
||||
Reference in New Issue
Block a user