diff --git a/.trellis/tasks/07-27-sync-git-remotes/check.jsonl b/.trellis/tasks/07-27-sync-git-remotes/check.jsonl new file mode 100644 index 0000000..2071c14 --- /dev/null +++ b/.trellis/tasks/07-27-sync-git-remotes/check.jsonl @@ -0,0 +1,2 @@ +{"_example": "Fill with {\"file\": \"\", \"reason\": \"\"}. Put spec/research files only — no code paths. Run `python3 .trellis/scripts/get_context.py --mode packages` to list available specs. Delete this line once real entries are added."} +{"file": ".trellis/workflow.md", "reason": "核验任务验收与 Git 操作边界"} diff --git a/.trellis/tasks/07-27-sync-git-remotes/implement.jsonl b/.trellis/tasks/07-27-sync-git-remotes/implement.jsonl new file mode 100644 index 0000000..4b75477 --- /dev/null +++ b/.trellis/tasks/07-27-sync-git-remotes/implement.jsonl @@ -0,0 +1,2 @@ +{"_example": "Fill with {\"file\": \"\", \"reason\": \"\"}. Put spec/research files only — no code paths. Run `python3 .trellis/scripts/get_context.py --mode packages` to list available specs. Delete this line once real entries are added."} +{"file": ".trellis/workflow.md", "reason": "遵循任务执行、Git 安全边界与收尾流程"} diff --git a/.trellis/tasks/07-27-sync-git-remotes/prd.md b/.trellis/tasks/07-27-sync-git-remotes/prd.md new file mode 100644 index 0000000..f91dfea --- /dev/null +++ b/.trellis/tasks/07-27-sync-git-remotes/prd.md @@ -0,0 +1,31 @@ +# 核查并同步 Git 远端 + +## Goal + +确认本地工作区及 `main` 分支的全部已提交内容已同步到项目配置的云端 Git 仓库,避免本地提交遗漏。 + +## Background + +- 当前工作树干净,没有未提交或未跟踪文件。 +- 本地 `main` 当前提交为 `2682a509dcbbe0ab7b1e3226a5363d580adf8763`。 +- `main` 跟踪 `gitea/main`,本地领先 3 个提交。 +- `github` 与 `origin` 指向同一 GitHub 仓库地址;`gitea` 指向独立 Gitea 仓库。 + +## Requirements + +- 拉取各唯一远端的最新引用,准确比较本地 `main` 与云端 `main` 的提交关系。 +- 若远端没有本地未知提交,则以普通、非强制方式推送本地 `main`。 +- 不修改代码、提交历史、分支结构或远端配置。 +- 同一仓库地址只需推送一次,避免对 `github` / `origin` 重复操作。 +- 推送后再次核对工作树与各目标远端引用。 + +## Acceptance Criteria + +- [ ] `git status` 显示工作树干净。 +- [ ] 本地 `main` 的已提交内容已推送到 Gitea 与 GitHub 两个唯一远端仓库。 +- [ ] 推送后各目标远端 `main` 与本地 `main` 指向同一提交。 +- [ ] 未使用强制推送,也未重写提交历史或更改远端配置。 + +## Out of Scope + +- 创建新提交、修改项目文件、调整 Git 托管配置或创建其他分支/标签。 diff --git a/.trellis/tasks/07-27-sync-git-remotes/task.json b/.trellis/tasks/07-27-sync-git-remotes/task.json new file mode 100644 index 0000000..6e2ed53 --- /dev/null +++ b/.trellis/tasks/07-27-sync-git-remotes/task.json @@ -0,0 +1,26 @@ +{ + "id": "sync-git-remotes", + "name": "sync-git-remotes", + "title": "核查并同步 Git 远端", + "description": "", + "status": "in_progress", + "dev_type": null, + "scope": null, + "package": null, + "priority": "P2", + "creator": "TalexDreamSoul", + "assignee": "TalexDreamSoul", + "createdAt": "2026-07-27", + "completedAt": null, + "branch": null, + "base_branch": "main", + "worktree_path": null, + "commit": null, + "pr_url": null, + "subtasks": [], + "children": [], + "parent": null, + "relatedFiles": [], + "notes": "", + "meta": {} +} \ No newline at end of file