Brand new to Git, GitHub, Firebase & AI coding? Start here β plain English, real commands, one step at a time.
Your code lives in three places. Almost everything you'll do is just moving it between them.
push / pull move code to and from GitHub Β·
deploy makes it live on the internet via Firebase.
Editing on your computer changes nothing online until you push and/or deploy.
Two of the sections below are βdeploy loops.β You only need one of them β pick by what's in your project folder.
.html files you can open directly. β Use the Static HTML Flow (Section 3).package.json with a build step (React / Vite)?npm run build to make the site. β Use the React Workflow (Section 4).package.json = Static. Has a package.json with a "build" script = React.
What is this? Git = a time machine for your code (it saves snapshots you can rewind to). GitHub = a website that stores those saves online so they're backed up and shareable. This section links your local folder to a GitHub repo once.
What is this? Your project already lives on GitHub (from Section 1). Now you're on a different computer and want a copy to work on. Cloning downloads the whole project β files and history β in one command.
What is this? The everyday loop for a plain HTML/JS site (like this cheat sheet). There's no βbuildβ step β your files are the website β so you deploy them straight to Firebase. Every session: pull β deploy β push.
What is this? React / Vite projects have a build step β your source code gets compiled into a dist/ folder, and that is what goes live. So the loop is longer: pull β check β build β deploy β verify β push. Follow it in order every time.
What is this? Firebase is Google's hosting service β it's what actually puts your site on the internet at a public URL. The Firebase CLI (the firebase command) is how you log in, choose which project you're deploying to, and push your site live.
https://your-site.web.app. Open it to see your changes live.
firebase login again. If it deploys but you see the wrong site, you were on the wrong project β run firebase use to check, switch, and redeploy.
What is this? Claude Code is an AI coding assistant that runs in your terminal. You type claude to start it, then talk to it in plain English β it can read your files, make changes, run commands, and even commit, push, and deploy for you.
--dangerously-skip-permissions = βYOLO mode.β It auto-approves every file write, command, and network call with no prompts. Only run it in a trusted project where git is your undo button β commit before you start so you can roll back.
claude -c.
claude isn't recognized in your terminal at all.
claude auth login to sign in, claude auth logout to switch.
firebase deploy --only hosting. In --dangerously-skip-permissions mode it does all of it without stopping to ask. For example:
claude command runs on YOUR machine. If you turn the computer off, close the terminal, or it goes to sleep, Claude Code stops and does not finish the job.
claude --cloud, or Claude Code on the web at claude.ai/code) that runs on Anthropic's servers and keeps going with your computer off. But it's a more advanced setup: it clones your project from GitHub (so you must push first) and needs your secret keys stored in its cloud settings, not your local .env.
claude so it asks before each step β you'll learn what it's doing. Switch to --dangerously-skip-permissions once you trust it and have committed your work as a safety net.
main, older ones master.)package.json into a node_modules folder.dist/ folder for React/Vite).