Files
MemRelay/projects/d2b9f121-7638-43b7-97a8-17bdddcd238a/Checkpoint 2026-10-19 18-52-48 UTC [ba490b0e2d].md
T
memrelay 5ab4142a6b create: Checkpoint 2026-10-19 18:52:48 UTC [ba490b0e2d]
MemRelay-Operation: checkpoint-save:sotfassist-checkpoint-git-init-20261020
MemRelay-Resource: 7886397a-6082-43cd-ab51-d8e41be7d91f
2026-10-20 02:52:52 +08:00

34 lines
2.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-10-19 18:52:48 UTC [ba490b0e2d]
type: checkpoint
permalink: main/projects/d2b9f121-7638-43b7-97a8-17bdddcd238a/checkpoint-2026-10-19-18-52-48-utc-ba490b0e2d
stable_id: 7886397a-6082-43cd-ab51-d8e41be7d91f
scope: project
memory_type: checkpoint
project_id: d2b9f121-7638-43b7-97a8-17bdddcd238a
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: sotfassist-checkpoint-git-init-20261020
created_at: '2026-10-19T18:52:48.951625+00:00'
updated_at: '2026-10-19T18:52:48.951625+00:00'
tags:
- git
- handoff
---
完成:SOTFAssist 已有独立 Git 仓库,供后续 worktree 使用。
之前:SOTFAssist 目录没有 .git。上级 D:\Game\SonsOfTheForestMod 是 Git 仓库,分支 kelvin-face,HEAD 1691796f06468b25caa0c40ff282bdac1bac171b。SOTFAssist 里部分源码已被上级跟踪。
做了什么:在 D:\Game\SonsOfTheForestMod\SOTFAssist 执行 git init,分支 main。写了 .gitignore。初始提交 d3dbfbbbd3117ac905d559f786e6bc75a714d2b3,信息 chore: 建立游戏辅助仓库并纳入现有代码。38 个文件。未改业务代码,未改 git config,未 push,未改上级历史和上级 .gitignore。
关键实现:忽略 bin/、obj/、.vs/、*.user、aidocs/、Preview/Library/、Preview/Logs/、Preview/Temp/、Preview/obj/、Preview/UserSettings/、Preview/*.log、*.csproj.user,另加根目录 PreviewCompile.log 与 PreviewCreate.log。源码、manifest.json、Ui/AssistView.cs 已入库。Preview/Assets/Ui 是指向本机绝对路径 Ui 的目录联接,未入库。
验证:git rev-parse 显示仓库根为 SOTFAssist,分支 main,HEAD d3dbfbbbd3117ac905d559f786e6bc75a714d2b3。git check-ignore 确认生成目录、日志、联接目录和 bin 下 dll 被忽略。上级 HEAD 仍是 1691796。上级 status 不列出 SOTFAssist/.git,会把 SOTFAssist/.gitignore 和原先未跟踪的源码显示为未跟踪。
问题:上级仓库仍跟踪部分 SOTFAssist 源码,两边会同时看到这些文件的改动。子目录 .gitignore 也会影响上级忽略规则。
下一步:从 SOTFAssist 目录执行 git worktree add ..\SOTFAssist-功能名 -b 功能名。不要在上级仓库里提交这些嵌套改动,除非用户明确要求。
给下个会话:独立仓库路径 D:\Game\SonsOfTheForestMod\SOTFAssist,分支 main,没有远端。worktree 兄弟目录仍会落在上级工作区。预览联接 Preview/Assets/Ui 没有进版本库。不要改上级 .gitignore。不要把默认背包视角改回 60,上限 200、下限 40。