Open Terminal and Push Project to Git Repository
-
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
-
-
To push your project to a Git repository (GitHub, GitLab, etc.), first open the Terminal:
-
Press
Ctrl + Shift + Cto launch the built-in terminal
-
-
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 masterReplace
your-usernameandyour-repo-namewith your actual GitHub details. -
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:
-
A popup will appear showing a GitHub access token.
-
Copy the token to your clipboard.
-
Log in to your GitHub account, then paste the token when prompted to complete authentication.
-
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.

6
.png)