Git and saving your work
Save versions you can find your way back to
One giant commit called “update” holds a week of work.
- What you get
- Your current changes split into small, named saved versions, and a rule for doing it as you go.
- Paste it into
- Your AI tool, in your project
The prompt
My uncommitted changes are a mix of several things. Help me save them as versions I can make sense of later. Read the current changes and group them by purpose: one feature, one fix or one clean-up each. Show me the groups and a short message for each that says what changed and why, in plain words. After I agree, commit them group by group, checking the project still builds after each one. Don't include secrets, build output or unrelated files. Then add a rule to this project's instructions file so that from now on you propose a saved version each time a piece of work is working.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.
More in Git and saving your work
Get out of a Git mess without losing work
Conflicts, a detached HEAD or a rejected push, and every suggested command looks dangerous.
Go back to the last version that worked
The last hour of changes made things worse and you want it gone.
Stop committing files that shouldn’t be in Git
The .env file, node_modules or build output ended up in the repository.
Stop building straight on the live site
Every change goes to main and straight to production, tested by your users.