GitHub scares a lot of beginners. It should not. It is just where your project lives online.
This section removes the fear and shows you how GitHub fits into the new workflow.
GitHub is like Google Drive for code.
- You save your project there
- You can access it from anywhere
- You can see what changed
- You can go back to older versions
That is it.
A repository (repo) is just a folder for your project.
Think of it like:
- A folder on your computer = a repo on GitHub
- Your files = your project
- Your README = your notes
A commit is like saving your game.
- You make changes
- You save those changes with a message
- GitHub remembers that point in time
- Your code is safe
- You can track progress
- You can work from different computers
- You can share the project when needed
- It keeps your work organized
We are no longer teaching "Firebase Studio will make the repo for you."
In this workflow:
- you create the Firebase project first
- you start the app in Google AI Studio
- you create the backend in Firebase Console
- you push the starter code to GitHub
- you build locally in Cursor
That means GitHub is the hand-off point between AI Studio and Cursor.
- Create a GitHub account at GitHub.com if you do not have one
- Let AI Studio create the starter repo when you click GitHub
- Keep it private
Good repo names:
my-note-apphabit-trackeridea-saverresource-bookmarker
Bad repo names:
projecttestnew-thing
AI Studio can push code to GitHub, but it is not the place you want to keep syncing back and forth forever.
The big limitation is:
- it can push code to GitHub
- it cannot pull your GitHub changes back in the way we want for this stack
That is why our workflow is:
- start in AI Studio
- push to GitHub
- clone to Cursor
- stay in Cursor
Once the AI Studio repo is cloned to your computer, Cursor becomes your normal Git workflow:
- make changes
- commit changes
- push changes
GitHub becomes your project history from that point on.
Use a private repo because:
- your code is yours
- beginners often accidentally expose keys or config
- private repos are free
Do not commit secret keys or sensitive information.
Once the repo is set up:
- Your code is backed up
- You can clone it anywhere
- Cursor can work on it locally
- You can commit and push changes as you build
GitHub is your source of truth. Firebase is your backend. Cursor is your workshop.
Before you build your first app:
- Create a GitHub account if needed
- Be ready to connect AI Studio to GitHub for the starter repo
- Keep the repo private
That is enough. You do not need to overthink GitHub.