> ## 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 and commit

> Review diffs, commit changes, and generate a commit message with AI in the desktop app.

The Git panel puts common version-control actions in the desktop window.

<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 panel" width="100%" data-path="images/desktop/git-panel.png" />

## Common actions

* Review workspace changes
* Stage / unstage
* View a file diff
* Switch branches
* Browse commit history
* Work with worktrees

## Generate a commit message with AI

1. Make sure there are uncommitted changes
2. Trigger AI generate from the Git / commit entry
3. Review the result, then commit

You can edit the commit prompt in Settings to lock language and title format.

<Note>
  Commit AI sends the diff to the selected model. Very large diffs are truncated. For a sensitive repo, check the prompt and provider first.
</Note>

## Related

* [Workspace and panels](/en/desktop/workspace/overview)
* [Modes and permissions](/en/desktop/chat/modes)
