If you want to try Vibe Coding - Use GIT
AI Tip no 4 - if you’re planning on trying Vibe Coding - use GIT!
If you’re starting to “vibe code” — letting AI write the code, accepting most of what it produces, iterating fast — sooner or later you’ll have this moment. You accept a change. You move on. Ten minutes later something has broken, and you realise that change was wrong. Or the code worked better an hour ago. Or you’ve drifted so far from where you started you can’t remember what you’ve changed and what you haven’t. You want an undo button. You don’t have one. You’ve been saving over the same file all morning.
That’s what git is for. The shortest description I can give: it’s a tool that takes snapshots of your code at moments you choose, lets you compare them, and lets you go back to any of them when you change your mind. Software developers use it for all sorts of sophisticated collaboration. You don’t need any of that yet. You need the snapshot-and-rollback bit.
Worth knowing there are really two gits in play. One lives locally on your computer and tracks your snapshots. The other is a copy in the cloud — usually on a service like GitHub — which mirrors the local one. The two link together, so you’ve got a backup off your machine and somewhere to share work if you ever want collaborators. For solo experiments the local one alone gets you a long way. The cloud bit becomes useful when you want a safety net or to bring someone else in.
Commits, branches, remotes — the terminology is jargon-heavy and takes a while to settle. But here’s what’s changed since I started learning this: you’re already talking to an AI. You don’t need to Google. Ask Claude what a commit is. Ask it to explain what just happened. Ask it to write the command you need. It will, it will explain why, and it will usually catch you when you’re about to do something you’d regret.
Two notes on how to actually use it. Git started life as a terminal tool — a command line you type into — and plenty of experienced developers still argue that’s the best way, because you see exactly what’s happening. But Claude’s coding tools in a chat window will now do most of it for you. You describe what you want; it runs the commands. Sometimes it asks you to copy and paste something into the terminal yourself, but most of the time you can stay in the chat. Editors like Cursor and VS Code also expose git as buttons rather than commands, which is another gentler way in.
One lesson from my own experiments: take a snapshot before you let the AI loose on something that’s working, especially if you don’t fully understand the code yet. Those five seconds will save you an hour. I picked up git because I needed it, not because I planned to. If you’re starting to let AI write code for you, do yourself a favour and learn this before you really need it. You will.