chore(task): record git remote sync
This commit is contained in:
2
.trellis/tasks/07-27-sync-git-remotes/check.jsonl
Normal file
2
.trellis/tasks/07-27-sync-git-remotes/check.jsonl
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
{"_example": "Fill with {\"file\": \"<path>\", \"reason\": \"<why>\"}. 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 操作边界"}
|
||||||
2
.trellis/tasks/07-27-sync-git-remotes/implement.jsonl
Normal file
2
.trellis/tasks/07-27-sync-git-remotes/implement.jsonl
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
{"_example": "Fill with {\"file\": \"<path>\", \"reason\": \"<why>\"}. 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 安全边界与收尾流程"}
|
||||||
31
.trellis/tasks/07-27-sync-git-remotes/prd.md
Normal file
31
.trellis/tasks/07-27-sync-git-remotes/prd.md
Normal file
@@ -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 托管配置或创建其他分支/标签。
|
||||||
26
.trellis/tasks/07-27-sync-git-remotes/task.json
Normal file
26
.trellis/tasks/07-27-sync-git-remotes/task.json
Normal file
@@ -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": {}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user