加 .gitignore,并把 28 个运行期产物移出版本库
## 为什么
35534b1 把 logs/*.log.gz(10 个)与 __pycache__/*.pyc(18 个)
一起提交了,而仓库**根本没有 .gitignore** —— 那不是手误,是缺一道门。
已 `git rm --cached` 那 28 个(磁盘文件保留,只是不再跟踪)。
## 覆盖三类
① 运行期产物:logs/ *.log.gz __pycache__/ .pytest_cache/ …
② **加载器/mod 的运行时配置**:config/ shaderpacks/ options.txt saves/
datapacks/ resourcepacks/
★ 这类属于**实例**,不属于仓库。实测踩过:Sodium 往**进程 cwd**
写了 config/sodium-mixins.properties,落进了仓库根。
根因已修(base.py:cwd=self.cwd or self.game_dir,让运行时产物
落进实例目录),这里再兜一层。
③ 构建缓存:.mcfold-tools/ build/ dist/ *.egg-info/
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user