create: 每次修改后立即提交

MemRelay-Operation: memory-save:global-commit-every-change-20261016
MemRelay-Resource: d251547c-df03-4c46-a008-358cdb39de7a
This commit is contained in:
2026-10-16 15:41:34 +08:00
parent 3686a5c4b5
commit c7b5422ec7
+20
View File
@@ -0,0 +1,20 @@
---
title: 每次修改后立即提交
type: rule
permalink: main/global/每次修改后立即提交
stable_id: d251547c-df03-4c46-a008-358cdb39de7a
scope: global
memory_type: rule
project_id: null
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: global-commit-every-change-20261016
created_at: '2026-10-16T07:41:31.960561+00:00'
updated_at: '2026-10-16T07:41:31.960561+00:00'
tags:
- git
- workflow
---
每次代码修改完成并验证后立即提交对应 Git 仓库,不要等到多轮对话结束。这是为了中间改错时能回退。存在远端时提交后推送;推送前先 fetch,远端有新提交则先 rebase 再推送,不使用 force。提交信息仍用 type: 中文一句话。不提交秘密值、data/、config.json、Temp、抓包文件。没有改动时不做空提交。