Build with AI

Git vs GitHub, explained for people who build with AI

Part of the vibe coding guides.

By Khalid · 5 min read

Short answer

Git is a tool that records every change to a folder of files, line by line, so you can go back to any earlier version. GitHub is a website where you keep a copy of that history online, share it and work on it with others. Git is the undo button, and GitHub is where you store it.

You already do version control, just badly

Have you ever saved a file called “Final V2, Actually Final”? That’s version control, done by hand. It works for one file, sort of. But a website, a knowledge base or an app isn’t one file. It’s a folder full of them, and when someone edits a page and it breaks, there’s no way back to how it looked this morning.

Developers have had proper versioning for decades, and it costs nothing to use. It just stayed behind a command line that kept everyone else out.

What is Git vs GitHub

Git lives on your computer and keeps the full history of your project: every change, who made it and when. GitHub is an online home for that history, so it’s backed up, you can share it, and a tool like Claude or a hosting service can work from it.

How Git stores your work

Git doesn’t keep a full copy of your folder every time you save. It stores only what changed, line by line. That’s why you can keep a huge number of versions of any kind of file and it costs almost nothing.

It also lets you work on a copy beside the live version. You try your change there, and when it works you merge it in. If the live version ever breaks, you point back to the last good one and it’s live again in moments.

GitHub for vibe coding: save points for AI edits

This is why Git matters more now than it used to. AI writes pages, and AI breaks them. It fixes the thing you asked about and quietly changes something else, and without history there’s no undo.

With Git, every change the AI makes is a save point. If it breaks your booking page on the third try, you go back to the second. That’s what makes it safe to let AI try things at all.

Using Git without the command line

The command line is what kept most people out of Git, and that barrier is mostly gone. You can tell Claude in plain English, “save this version with a note saying I fixed the booking form”, and it runs the Git commands for you. I haven’t typed a Git command by hand in a year or two. I still use Git on everything I build.

If you’d rather click than type, GitHub Desktop and the Git panel in VS Code do the same job with buttons.

Git vs GitHub vs GitLab

GitLab and Bitbucket are alternatives to GitHub: other websites that store your Git history online. Git itself is the same underneath all of them. For someone starting out and building with AI, GitHub is the one most tools connect to first, so it’s where I’d start.

Git vs GitHub Desktop

GitHub Desktop isn’t a third thing. It’s an app with buttons for using Git and GitHub, so you don’t have to type commands. It’s a good middle step if you don’t want to hand everything to an AI yet.

Git flow vs GitHub flow

These two names sound like the same thing and aren’t. Git flow and GitHub flow are two ways a team agrees to use Git. They’re working habits, not products.

Git flow has two long-lived lines of work: a main version that’s live and a development version where changes come together. Around them sit short-lived branches (side copies) for new features, releases and urgent fixes. It’s built for software with numbered versions, sometimes several in use at once.

GitHub flow is simpler: one main version, a short branch for each change, merged back through a pull request. A pull request is a request to add your change, with a place for someone to review it. Your change doesn’t reach main until you merge it. GitHub’s own guide says this flow “is useful for everyone, not just developers.”

For a simple site or a first app, GitHub flow is the better fit. It’s fewer rules, and the AI can follow it without confusion. The simple rule I’d use: one live version, a working copy for each change, and a check before the change goes live.

Vincent Driessen, who wrote the original Git flow post, added a note in 2020. He wrote that web apps are “typically continuously delivered” and that for teams doing continuous delivery, “I would suggest to adopt a much simpler workflow (like GitHub flow).”

Read more: GitHub’s guide to GitHub flow and Vincent Driessen’s original Git flow post.

How I set Git up for people who aren’t developers

I once ran the website for an international dental students’ association where most of the people who wanted to help weren’t developers. So I wrote a Git workflow simple enough for volunteers: one main version that’s live, one working copy for changes, and a clear rule for moving changes from one to the other. The same idea works for a small business site today, except now the AI does the typing.

Questions people ask

What is Git vs GitHub, in one line?

Git records every version of your project, and GitHub stores that record online.

What is the difference between Git and GitHub?

Git is the tool that records every version of your project on your computer. GitHub is a website that stores that record online, so you have a backup and other people and tools can work with it. You can use Git without GitHub, but you can’t use GitHub without Git.

Do I need GitHub to use Git?

No. Git works fine on your own computer. You’ll want GitHub, or something like it, the moment you want a backup, want to share, or want a tool or host to use your project.

Is GitHub free?

You can start without paying.

Do I still need Git if AI writes my code?

Yes, more than before. AI changes a lot of files quickly, and Git is how you see what changed and undo it when something breaks.

How do I use Git and GitHub in VS Code?

VS Code has a Git panel built in. Connect your GitHub account, and you can save versions and send them to GitHub with buttons. Or ask the AI in your editor to do it for you.

Can I undo what AI broke on my website?

Yes, if you were saving versions with Git. Go back to the last version that worked. If you weren’t, start now, because the next break is coming.

Next steps

Want the next guide by email, or want it built for you?

Build it for me

Join the waitlist for a done-for-you build.

One short email every Friday, plus a full guide once a month.