執行 `git commit` 未加 `-m` 參數時,Git 會打開默認文本編輯器輸入提交信息。新手常因不熟悉編輯器操作而卡住。
快捷鍵總結:`Esc` → `:wq` → `Enter`(保存退出)或 `:q!` → `Enter`(強制不保存退出)
# 設置為 VS Code
git config --global core.editor "code --wait"
# 設置為 Notepad++ (Windows)
git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
# 設置為 Vim
git config --global core.editor "vim"