Demo, all content is generated
Question

Never used git. How do I undo what the AI did yesterday?

Solved · 1321 views · asked by wairimu · edited

I'm building a recipe site with Cursor, not a developer. Yesterday I asked it to "make the design more modern" and accepted everything. Today I hate it and want yesterday morning's version back. I never set up git or anything, everyone says I should but I don't really know what it is.

Is my old version just gone?

What I’ve tried

Ctrl+Z in some files (it only goes back a few steps), looked in the chat for a restore button (the chat from yesterday was already closed).

Comment
Which files did it change, do you know? ingrid_h · edited

3 answers

Marked as helpful by the asker
ingrid_h · edited

Probably not gone. Cursor keeps a history of every file you save, separate from git:

  1. Open a file that changed, e.g. your main page.
  2. In the left sidebar (Explorer), at the bottom, open Timeline.
  3. You'll see entries with times. Click one from yesterday morning to see a diff, right-click → Restore Contents.

Do that for each file the AI touched. Tedious but it works.

Then set up git today, it takes two minutes and means this never costs you an afternoon again. In Cursor: Source Control icon → Initialize Repository → type a message like "working version" → Commit. Do that every time something works. Now "undo" is one click back to any of those moments.

Git is basically save points for your whole project instead of one file.

Comment
It is! Next step whenever you like: push to a private GitHub repo, then it's also backed up off your laptop. ingrid_h · edited
Timeline worked for 5 of the 6 files! The CSS file I restored by asking Cursor to remove the gradient stuff. wairimu · edited
And I made my first commit. 'recipes working, old design'. Feels like an achievement honestly wairimu · edited
sarah_k_dev · edited

One tip for later: before you ask for anything big like 'make it modern', commit first. Then if you don't like the result: Source Control → discard all changes, done.

Comment
jonas_k · edited

If the terminal scares you, GitHub Desktop is a friendly app for exactly these save points, and it pushes to GitHub with one button. Plenty of people never touch git commands.

Comment
Installed it, much less scary than the terminal. wairimu · edited