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

# Git Integration

> Using AI-powered Git features in Alex Sidebar

Alex Sidebar provides Git integration to quickly manage your version control workflow with AI-powered commit message suggestions.

## AI-Powered Commit Messages

* Automatically generates contextual commit message suggestions
* Preview generated messages before committing
* One-click commit with suggested messages

## Quick Access

* Use **CMD+Shift+G** shortcut to open the Git status panel
* Select and manage multiple files at once
* View both staged and unstaged changes

<Frame>
  <img src="https://mintcdn.com/alex/MU0ta-NVGMnBtJHm/images/git-changes-panel.png?fit=max&auto=format&n=MU0ta-NVGMnBtJHm&q=85&s=246c7adaafb66de4fde3389c120b9a26" alt="Git panel showing staged changes and modified files" title="Git Status Panel" width="1388" height="1224" data-path="images/git-changes-panel.png" />
</Frame>

<Note>
  The Git panel shows all your staged and unstaged changes, making it easy to review before committing.
</Note>

## Using Git Integration

<Steps>
  <Step title="Open Git Panel">
    Press **CMD+Shift+G** to open the Git status panel.
  </Step>

  <Step title="Select Files">
    * Use the checkboxes to select individual files
    * Click "Select All" to include all changed files
  </Step>

  <Step title="Generate Commit Message">
    * Click "Generate Commit Message" to get AI suggestions
    * Review the preview of the suggested message
    * Use "Copy Message" to copy to clipboard if needed

    <Frame>
      <img src="https://mintcdn.com/alex/MU0ta-NVGMnBtJHm/images/git-commit-suggestions.png?fit=max&auto=format&n=MU0ta-NVGMnBtJHm&q=85&s=f7ca41b8b10f69d60aab7e8a13b02d1e" alt="AI-generated commit message suggestions interface showing multiple message options" title="Git Status Panel" width="1388" height="1224" data-path="images/git-commit-suggestions.png" />
    </Frame>
  </Step>

  <Step title="Commit Changes">
    Click "Accept and Commit" to commit your changes with the selected message.
  </Step>
</Steps>

## Configuration

The Git integration works out of the box with your existing Git configuration. No additional setup is required.

<Note>
  Make sure your repository is properly initialized with Git before using these features.
</Note>
