In plain words
A commit is a named snapshot of your project's files at one moment, so you can see what changed and return to it later.
Where you see it
Connect Lovable to GitHub and every edit shows up there as a commit with a message like "Update NoteList.tsx". In Cursor or Claude Code, the agent runs git commit when you ask it to save your progress.
What goes wrong
- Working for hours without a commit
When the agent breaks something late in the day, there is no earlier checkpoint to return to. Commit every time the app works.
- Messages that say nothing
A week later, "fix" and "update" won't help you find the change that broke checkout. Say what changed and why.
git commit -m "fixes" - Committing the .env file
Your keys are now in the history and stay there even if the next commit deletes the file. Add .env to .gitignore before the first commit.
What to tell your agent
Quick check
Sign in to earn +10 XP for itThe agent's last three edits broke Quill, and you can't tell which one did it. When should you have committed?