Open Terminal and Push Project to Git Repository

  1. Now that you're in Code View, you have access to:

    • πŸ“ Full project file structure

    • πŸ§‘β€πŸ’» A powerful code editor (like VS Code)

    • 🌐 Live web preview of your app

    • πŸ€– Gemini/Prototyper AI chat for coding help and edits

  2. To push your project to a Git repository (GitHub, GitLab, etc.), first open the Terminal:

    • Press Ctrl + Shift + C to launch the built-in terminal

  3. In the terminal, run the following commands to initialize and push your project: git init
    git remote add origin https://github.com/your-username/your-repo-name.git
    git add .
    git commit -m "Initial commit from Firebase Studio"
    git push -u origin master

    Replace your-username and your-repo-name with your actual GitHub details.

  4. After pushing, your code will be live in your Git repository, ready for collaboration or deployment.

If Firebase Studio asks for GitHub authentication (since it's an external extension), follow these steps:

  1. A popup will appear showing a GitHub access token.

  2. Copy the token to your clipboard.

  3. Log in to your GitHub account, then paste the token when prompted to complete authentication.

  4. Once authenticated successfully, Firebase Studio will automatically push your project code to the connected repository.

Note: If you haven’t already, you’ll need to generate a Personal Access Token from your GitHub account. This is a one-time setup.

Discussion
Super helpful, thank you for writing this!

2

6

1