4 月 8 日晚上 7 點 29 分,透明視窗還沒解決(Day 7),我打了這則:
幫我設定 Godot 的 Windows 匯出,用最簡單的方式匯出一個測試用的 exe,讓我可以直接執行來確認透明視窗效果。請告訴我完整步驟,包含如何安裝匯出模板。
因為我懷疑編輯器裡看到的效果跟實際執行不一樣,所以想直接請 AI 跑 exe 確認。
問題出在之後的 commit。
53ff6ef,commit 是「fix: remove PanelContainer gray background with StyleBoxEmpty for transparent window」,看起來是個單純的 UI 修正。
實際上這個 commit 有 385 行變動,因為裡面包含:
build/sproutimer.console.exe
build/sproutimer.exe
build/sproutimer.pck
export_presets.cfg
我在測匯出時,順手 git add 了全部。
04-20 17:20 feat: add build folder(04a262e,改 .gitignore)
04-20 17:24 feat: remove build folder from git(f96e37f)
04-20 17:2x fix: adjust gitignore setting
04-22 20:xx fix: update git(改 .gitignore,41 行)
04-22 21:00 fix: remove old version files(3eb66df)
4 月 20 日終於發現放 exe 的 build 資料夾被放到 repository 上,因此我將它從 git 拿掉,然後 .gitignore 又調了兩次。順帶一提,中間我還把 C++ 擴充編出來的 dll 也 commit 過(debug 和 release 各一份),後來詢問 AI 後決定一併清掉。
這些 commit 訊息連起來看:feat: add build folder → feat: remove build folder from git → fix: adjust gitignore setting → fix: update git。就是我在 repo 中的角力。
而那些檔案已經進了 git 的歷史,不做 rebase 是清不掉的,不過因為是 private repository 所以我沒有特別去清。
.gitignore 從 M0 第一個 commit 就設好了,匯出設定 export_presets.cfg 有進 repo(那是設定,該進),匯出的成品放在 public/ 底下不進 git。
| Sproutimer | Pomofocus | |
|---|---|---|
| exe 進 git | 進了,十二天後才移除 | 沒有,.gitignore 從第一個 commit 就設好 |
| 匯出文件 | 有(4/15 補的 export_guide.md) | 寫在交接文件的里程碑驗證裡 |
| 更新流程 | 不明,最後停在 4/24 | 關掉 → 重新匯出 → 打開 |
| 實際部署 | 一份 104MB 的 exe 躺在資料夾裡 | 每天在用 |
| 資料備份 | 無 | 無(債) |
「順手 git add 全部」是 vibe coding 很容易出現的行為,因為節奏很快,注意力在功能上,不在 repo 上。
而 AI 不會阻止,它只會照著做。
所以記得在:**commit 之前先看一眼 git status。**特別是在「剛剛跑過建置指令」之後。
明天講一件教訓:我開發過程的對話紀錄,被預設設定自動刪光了。