> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mossx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Git 與 Commit

> 在客戶端裡檢視 diff、提交變更，並用 AI 生成提交說明。

Git 面板把常用版本控制操作放進客戶端視窗。

<img src="https://mintcdn.com/mossx-docs/kz4nt5KFSKzkAZwe/images/desktop/git-panel.png?fit=max&auto=format&n=kz4nt5KFSKzkAZwe&q=85&s=afec2ba58233ce07fd4955417039120b" alt="Git 面板" width="100%" data-path="images/desktop/git-panel.png" />

## 常見操作

* 檢視工作區變更
* 暫存 / 取消暫存
* 看檔案 diff
* 切換分支
* 瀏覽提交歷史
* 處理 worktree

## AI 生成提交說明

1. 確保有未提交變更
2. 在 Git / 提交入口觸發 AI 生成
3. 檢查生成結果後再提交

可在設定中編輯 Commit 提示詞，固定語言和標題格式。

<Note>
  Commit AI 會把 diff 發給所選模型。過大的 diff 會被截斷。敏感倉庫先檢查提示詞和供應商。
</Note>

## 相關

* [工作區與面板](/zh-Hant/desktop/workspace/overview)
* [執行模式與許可權](/zh-Hant/desktop/chat/modes)
