Back Up Your Project on GitHub

Like Google Drive for your project — upload once, save again when you edit

Finished Episode 13 or Episode 14? You have a project on your laptop. This episode puts a copy in the cloud — right from VS Code.

Two journeys — you only do the first one once

If you already use Google Drive, you know the pattern: upload your work, then save new versions when you edit. GitHub works the same way for your VS Code project.

Journey 1 · once ☁️

Put your project online

Sign up → open VS Code → Publish to GitHub → pick a name → Public or Private → check in your browser

Like your first upload to Google Drive

Journey 2 · every edit 🔄

Save your changes

Edit your work → + Stage → write a note → Commit → Sync ↑

Like saving a new version to Drive

Why not keep it only on your laptop?

Your project lives on one machine. You wouldn’t keep an important Google Doc only on your desktop — you’d put it on Drive. Same idea here: if the laptop is lost, stolen, or wiped, your work goes with it unless there’s a copy online.

Only on laptop
💻
My portfolio

Lost laptop · broken drive · deleted file

Laptop + GitHub copy
💻 ⇄ ☁️ GitHub
My portfolio

Edit on laptop · backup stays online

Work in VS Code → Copy safe on GitHub

GitHub is cloud storage for your project — not social media

0 / 3

Create your GitHub account

Go to github.com and sign up — like creating a Google account. Use a real email. Pick a username carefully — it’s your name on GitHub and you can’t change it later. Short, professional, easy to spell.

Free plan is enough for learning projects

0 / 3

Open your project in VS Code

In VS Code or Cursor: File → Open Folder → pick your project. On the left sidebar, click the Y-shaped icon — that panel is called Source Control. This is where you upload and save your work. VS Code handles the setup for you.

Visual Studio Code
📁 ⑂ 🧩
SOURCE CONTROL
Publish to GitHub
My page — changed
What did you change?
Commit Sync
1 My portfolio
Click Next to tour Source Control

No Publish button? Use File → Open Folder and pick your whole project

0 / 3

Click “Publish to GitHub”

The blue Publish to GitHub button appears the first time. Click it. VS Code asks what to call your project online (e.g. My Portfolio) and who can see it: Public (anyone) or Private (only you). Sign in to GitHub in the browser if asked → click Allow.

1 Click Publish to GitHub
2 Call it My Portfolio (or any name you like)
3 Public for portfolios · Private for personal drafts
4 Browser login → Allow → Publish
Publish to GitHub
Project name online My Portfolio
● Public ○ Private
Publish

Like your first upload to Google Drive — everything goes to the cloud

0 / 4

Confirm your project is online

VS Code uploads your work — that’s your first save to the cloud. Open GitHub in your browser, sign in, and find your project. You should see all your files there. Journey 1 is done.

💻 VS Code on laptop My Portfolio
Upload ↑
☁️ GitHub Your project, safe online
✓ Journey 1 complete — your project is backed up
0 / 3

When you make a change — save and upload

You’ll edit your project over time. Each time, go back to Source Control (Y-shaped icon) and run four moves. Here’s what each button means if you think in Google Drive:

1
Edit — change your work in VS Code Like editing a Google Doc
2
Stage — click + next to your change Like choosing what to include in this save
3
Commit — type a short note (e.g. “Fixed homepage title”) → click Commit Like naming this version before you save
4
Sync — click Sync or the ↑ arrow Like uploading the new version to the cloud
+ My page — ready to save
Fixed homepage title
↑ Sync Changes

Upload at the end of a work session — same habit as saving to Drive

0 / 4

Button → Google Drive meaning

Publish to GitHub

First upload — send your whole project to the cloud

+ (Stage)

Select what to include in this save

Commit

Save this version with a short note

Sync ↑

Upload the saved version to GitHub

Source Control

The Y-shaped panel — your upload & save area

Quick answers

🔒
Public or private?

Learning portfolios → Public is fine. Personal work → Private. You can switch later in GitHub settings.

✨
Using Cursor?

Same Y-shaped icon, same Publish and Sync buttons.

📂
Drive vs GitHub

Google Drive for Docs and slides. GitHub for projects you build in VS Code.

📝
Short notes

One plain sentence when you Commit: “Added contact section.” That’s enough.

Upload once. Save again when you edit.

📧
Act 1
Why + GitHub account
→
☁️
Journey 1
Publish → check in browser
→
🔄
Journey 2
Edit → Stage → Commit → Sync

GitHub is your project’s safety net. Publish once, then Sync whenever you make a change worth keeping.

Quick quiz

1. GitHub is closest to…

2. First time — which button?

3. After editing your work, the order is…

4. “Commit” means…