Lesson 11 · Save, publish and launchGitHub for beginners: why your code needs a home
Versions to go back to, and a copy that’s always yours.
Every vibe coded project grows through hundreds of small changes. Learn how saved versions let you go back, what GitHub is and why a private copy of your code in your own account matters, and when to set it up.
About 8 minutes to readLast updated
On this page
Why versions matter
A project you vibe code changes all the time: a new section, a different colour, a whole new feature. Most changes are improvements, but now and then one isn’t, and you want yesterday’s version back. Versions make that easy.
In 3Edit, your saved versions are in Project History. Press Restore beside an earlier version, and 3Edit saves your current version first, so you can always come back to it. That is your everyday safety net, right inside the app.
What GitHub is
GitHub is a website where developers keep their code. Each project lives in a repository: a folder of code with a full history of every change, so any earlier state can be seen or brought back.
For a vibe coder, GitHub does three useful jobs. It keeps a second copy of your code outside your computer. It gives you a full history of your project. And it’s the place a developer will ask for if you ever want help: they can open your project from there and carry on.
A few words to know
| Word | What it means |
|---|---|
| Repository (repo) | Your project’s home on GitHub: its code and its whole history |
| Private repository | A repository only you, and people you invite, can see |
| Commit | One saved change in the history, with a short note of what changed |
| Push | Sending your latest saved changes up to GitHub |
| Git | The program developers use to send changes to GitHub. In 3Edit you don’t need it. |
GitHub in 3Edit
In 3Edit you connect your own GitHub account once, and 3Edit creates a private repository for your project in your account. From then on, the repository updates each time you save. 3Edit sends your code to GitHub directly, so there is no Git program to install, on Mac or Windows.
Offline for a moment? Your latest changes go to GitHub when you’re back online: save again or press Push now. Make your changes in 3Edit; changes made on GitHub stay in its history, and bringing them into 3Edit is coming in an update.
When to connect GitHub
- Once the project matters to you: a site you plan to publish, a client project or anything you’d hate to lose.
- Before big changes: a new feature or a redesign is a good moment to make sure everything so far is safely stored.
- Before you bring in a developer: they can work from your repository, in VS Code or any editor.
- Not needed to publish: you can publish on 3Edit hosting or your own Vercel with or without GitHub.
Your code is yours
Your project is standard Next.js code. It’s saved on your computer, you can download the complete project from 3Edit, and you can keep it in your own GitHub. Secret keys are left out of downloads and GitHub uploads for safety, so you add them again wherever you host it.
That’s good practice, not a limitation: keys belong in each host’s own secure settings, never in a code repository.
Good habits with versions and backups
- Check before you build on top: when a version looks good, test it properly before asking for the next big change.
- Restore rather than repair: if a change has made a mess, restoring the last good version is often quicker than asking the AI to undo it piece by piece.
- Keep the repository private: your code is your work, and a private repository keeps it that way.
- Never put keys in your code: if a secret key ever reaches GitHub, rotate it straight away, as the security basics guide explains.
Try it in 3Edit.
Practise the safety net on any project. Paste the first prompt, look at the result, then restore the earlier version from Project History. When you’re happy, connect GitHub following the connect guide.
- 1A change to undo
Change the whole colour scheme of my website to black and bright yellow, and make every heading twice as large.
- 2Check before the next change
Before my next change, check the site for anything broken: links that go nowhere, buttons that do nothing, or sections that look wrong on a phone. List what you find, and don’t change anything yet.
- 3Explain my project
Write a short README for my project in plain words: what the website is, its main pages and features, and which services it connects to. Don’t include any keys or secrets.
After the first prompt, open Project History and restore the version before it. Then connect GitHub, and the README from the third prompt becomes the first thing anyone sees in your repository.
Do it step by step.
This lesson explains the what, the why and the when. These guides and pages show every click.
- Connect GitHub to 3EditKeep your site’s code in a private repository in your own GitHub account, updated each time you save. No Git to install.Read the guide
- Video tutorialsShort videos, including managing version history and project backups in 3Edit.Watch the tutorials
- Customise with AIAsk for any change, show a design you like with a screenshot, and go back to an earlier version whenever you like.Read the guide
Next: Publish your website: hosting and domains
About the author.
Written by Humayun Rashed, founder of 3Edit. He also runs 3Edit’s free in-person AI website building and vibe coding course in London.
Questions people ask.
GitHub keeps code in repositories, each with a full history of every change. For a vibe coder it keeps a second copy of your project outside your computer, records its history, and gives a developer a place to pick it up.
No. 3Edit sends your code to GitHub directly, so there’s no Git program to install, on Mac or Windows.
No. GitHub keeps a copy of your code in your own account, and you can publish on 3Edit hosting or your own Vercel with or without it.
Open Project History and press Restore beside an earlier version. 3Edit saves your current version first, so you can always come back to it.
No. Project downloads and GitHub uploads leave out the env files where keys live, so you add your keys again wherever you host the project.
Start vibe coding today.
Download 3Edit for Mac or Windows and build your first professional website in minutes.