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

# Deploy code from the Astro IDE to Git

<Info>
  **Preview**

  This feature is in [Preview](/docs/astro/feature-previews).
</Info>

The Astro IDE provides an integrated workflow for reviewing, committing, and deploying Airflow dag changes directly to a connected Git repository.

## Review, commit, and push changes with Git

The Astro IDE allows you to review, accept, and commit code updates directly to a connected Git repository.

### Prerequisites

* An Astro IDE project connected to a Git provider:
  * [Imported from GitHub](/docs/astro/ide-import-github-project) using the Astro GitHub integration, or
  * [Manually imported from any Git provider](/docs/astro/ide-import-git-project).

<Steps>
  <Step title="Review and accept changes">
    1. Review the suggested code changes directly in the code view and evaluate the AI’s suggestions and reasoning, visible in the left panel.
    2. Accept or reject each proposed change using the **Accept** or **Reject** button.
  </Step>

  <Step title="Prepare your commit">
    1. After accepting changes, click **Commit changes...** in the toolbar.
    2. In the commit dialog, you can enter a commit message manually, or click the wand icon to generate an AI summary. You can edit the AI-generated message before saving.
    3. Review the list of staged changes and confirm or switch the branch you are committing to.

    <Tip>
      There are two ways to create a new branch for your commits in Astro IDE:

      * Click the branch selector dropdown in the toolbar. In the input field that appears, type a new branch name and select the option to create a new branch from your current branch. Click **Create Branch**.
      * In the commit dialog, click the **Edit branch** button next to the branch name. Enter your new branch name, then click **Commit and push**.

      Both methods allow you to isolate your changes in a new branch.
    </Tip>
  </Step>

  <Step title="Commit and push to your Git branch">
    1. Click **Commit and push** to sync your changes with the selected branch in your remote Git repository.
    2. Confirm the commit in Git. Your message and all accepted changes appear in the repository history.
  </Step>
</Steps>
