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

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 Code switch icon 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