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

# Work with git

nao helps you work with git by generating commit messages and handling git operations through the AI agent.

## AI generated commits

In the commit form of nao, there's a button for **"auto-generate commit message"**. Click it to have nao AI analyze your changes and generate a clear, descriptive commit message automatically.

<div style={{ textAlign: 'center' }}>
  <img src="https://mintcdn.com/naolabs/UaOA-Y3q_amDsQm6/images/nao-ide/git_messages.png?fit=max&auto=format&n=UaOA-Y3q_amDsQm6&q=85&s=6491643619874c098ba0e4f1517b1ce8" alt="AI generated commit messages" width="800" data-path="images/nao-ide/git_messages.png" />
</div>

## Let nao AI handle git

The nao agent can handle all git operations for you:

* **Stage** files for commit
* **Commit** changes with appropriate messages
* **Push** commits to remote repositories
* **Pull** latest changes
* **Create PR** (Pull Request) for your changes

Simply ask nao AI in the chat to perform any git operation, and the agent will execute it for you with your approval.
