docs: 收编 git-push-dlp skill(DLP 保护区内 git push 流程)
This commit is contained in:
@@ -30,3 +30,15 @@
|
||||
- 项目内所有 `test_*.py`、`*_test.py` 和 `conftest.py` 都必须通过文本断言 AST policy gate,包括根测试集之外的子项目测试。
|
||||
- 新测试和既有测试适用同一规则,不允许 grandfathered violation。
|
||||
- 字符串可以作为被测 API 输入、Path 构造参数、字典 key 或 mock 调用参数;禁止的是对纯文本结果、渲染文本、源码文本、日志文本和异常消息进行断言。
|
||||
|
||||
## DLP 与 git push
|
||||
|
||||
本仓库位于 DLP 透明加密保护区(`E:\WorkSpace\`)。在保护区内直接执行 `git push` 会必现 `fatal: not a git repository (or any of the parent directories): .git`(退出码 128);其他 git 命令(status / commit / pull 等)全部正常,这是 DLP 驱动对 push 进程访问模式的拦截,**不是仓库损坏**,不要修仓库、不要重装 git。
|
||||
|
||||
提交推送(git push)必须调用项目内 skill `git-push-dlp`(`.kimi-code/skills/git-push-dlp/`,详细用法见其 `SKILL.md`):
|
||||
|
||||
```bat
|
||||
cmd /c .kimi-code\skills\git-push-dlp\scripts\git_push_dlp.bat origin main
|
||||
```
|
||||
|
||||
push 包含新增 / 变更的 LFS 对象时,先 `set GIT_PUSH_DLP_WITH_LFS=1` 再运行(恢复全量复制 `.git\lfs`)。
|
||||
|
||||
Reference in New Issue
Block a user