diff --git a/global/每次修改后立即提交.md b/global/每次修改后立即提交.md new file mode 100644 index 0000000..51a3d14 --- /dev/null +++ b/global/每次修改后立即提交.md @@ -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、抓包文件。没有改动时不做空提交。 \ No newline at end of file