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 Viewmenu, select Source Controlor press Ctrl-Shift-G ( Cmd-Shift-G in MacOS).

    If you're using the App Prototyping agent in Prototyper view, first clickCode switch icon Switch to Codeto 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 Controlpane, click Publish Branch.

  4. When prompted to log into Git, click Allowand 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 repositoryto publish your app privately on GitHub.

    • Publish to GitHub public repositoryto publish your app publicly on GitHub.

Next steps

Create a Mobile Website
View Site in Mobile | Classic
Share by: