# Upload your app to GitHub

You can integrate Firebase Studio with GitHub to ensure that your projects are backed up and can be shared with others.

## Before you begin

- **Create an account on GitHub**

## Add your project to GitHub

To add your project to GitHub:

1. In your open workspace, from the **View** menu, select **Source Control** or press `Ctrl-Shift-G` (`Cmd-Shift-G` in MacOS).

If you're using the App Prototyping agent in Prototyper view, first click **Switch to Code** to open Code view.

2. Review the Source Control graph. If there are any uncommitted changes, use either of the these two methods to commit them locally:
   - From the Source Control pane:
     1. Click **Commit**.
     2. When prompted to stage changes, click **Yes**.
     3. Add a commit message that describes your changes in the `COMMIT_EDITMSG` file that opens.
     4. Save and close the file.
   - From the Terminal:
     1. To view uncommitted files, run:
        
        ```
        git status
        ```
     2. Add the files to source control:
        - To add single files, run:
          
          ```
          git add [list of files]
          ```
        - To add all uncommitted files, run:
          
          ```
          git add *
          ```
     3. Commit your changes:
        
        ```
        git commit -m "Your commit message describing the changes."
        ```
3. In the **Source Control** pane, click **Publish Branch.**

4. When prompted to log into Git, click **Allow** and follow the instructions to authenticate.

5. After you've authenticated, return to the Firebase Studio window and enter a name for your project in the active field, then select one of the following:
   - **Publish to GitHub private repository** to publish your app privately on GitHub.
   - **Publish to GitHub public repository** to publish your app publicly on GitHub.

## Next steps

- [Customize your Firebase Studio workspace](/content/docs/studio/customize-workspace/index.html).
- [Create a custom template](/content/docs/studio/custom-templates/index.html).

---

Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates.
