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

# GitHub for version control

> Connect your GitHub repo to Same.new to sync code, track changes, and streamline full-stack app development with prompt-powered workflows.

## What is GitHub?

[GitHub](https://github.com/) is a **code hosting platform** for **version control** and **collaboration**. It allows you to store your code, track changes, and work with others on projects.

When you connect Same with GitHub, you can use natural language to:

* Create and manage repositories for your projects
* Push your project code to GitHub automatically
* Track changes and maintain version history

## Get started with GitHub

We recommend connecting to GitHub through MCP

<Steps>
  <Step title="Open MCP tools panel">
    Click **Tools** and open the panel

    <Frame>
      <img src="https://mintcdn.com/same/6v_Kyyhq-0v66NVR/images/tools-entry.png?fit=max&auto=format&n=6v_Kyyhq-0v66NVR&q=85&s=b234a87c5c51f1081c24994b15e2a2ee" width="2112" height="1422" data-path="images/tools-entry.png" />
    </Frame>
  </Step>

  <Step title="Connect to GitHub MCP">
    Find the card for GitHub and click **Add GitHub**

    <Frame>
      <img src="https://mintcdn.com/same/6v_Kyyhq-0v66NVR/images/add-github.png?fit=max&auto=format&n=6v_Kyyhq-0v66NVR&q=85&s=79754dbd85c970dba4129bf4478526f4" width="1998" height="1260" data-path="images/add-github.png" />
    </Frame>
  </Step>

  <Step title="Authorize the connection">
    Follow the page instructions to approve the connection. You may need to sign up for an account if you don't have one yet.

    <Info>
      GitHub is free for personal users.
    </Info>
  </Step>

  <Step title="Create a repository for your project">
    Once the connection is successful, directly ask Same to:

    ```md theme={null}
    Create a GitHub repository for my project and push my code
    ```

    Same will automatically create a repository and push your project code to GitHub.
  </Step>
</Steps>

## Sample prompts with GitHub

Here are some sample prompts you can try with GitHub:

<AccordionGroup>
  <Accordion title="Create a repository and push code">
    ```md theme={null}
    Create a GitHub repository for my project and push my code
    ```
  </Accordion>

  <Accordion title="Update your repository">
    ```md theme={null}
    Push my latest changes to GitHub
    ```
  </Accordion>

  <Accordion title="Create a new branch">
    ```md theme={null}
    Create a new branch for feature development
    ```
  </Accordion>
</AccordionGroup>
