# Go back to the last version that worked

> The last hour of changes made things worse and you want it gone.

Web page: https://buildladder.com/resources/prompts/undo-safely

What you get: The app back at a known good point, with the bad attempt kept on a side branch in case.

Paste it into: Your AI tool, in your project

## Prompt to copy

```text
The recent changes made things worse. I want to get back to the last version that worked.

Show me the recent saved versions (commits) with dates and a one-line summary of each, plus any changes that aren't saved yet. Help me pick the last good one. If I'm not sure, check a couple out temporarily so I can look.

Before going back, save everything from the bad attempt on a separate branch so nothing is lost. Then return the main work to the good version in a way that doesn't rewrite history that's already been pushed. Confirm the app runs, and tell me how to look at the abandoned work later.
```
