conon.ai

conon.ai/Tips

Version Control In One Sentence

Say 'take this project under version control and commit the current state as v1' — no terminal, no commands to learn. From that point every change is diffable and every broken Friday rolls back to a working Thursday. Without the baseline there is no diff counter, no rollback, no safety net.

AdvancedTOOLSClaude Code

Why it works

One sentence — take this project under version control and commit the current state — buys a time machine for the whole folder: every change diffable, every broken Friday recoverable to a working Thursday. Without the baseline there is no diff counter, no rollback, no safety net; with it, the agent can break things bravely because breaking is reversible.

How to do it

  1. In the first session of any project, say: 'take this project under version control and commit the current state as version 1.'
  2. The agent runs the setup itself — you type no git commands, ever.
  3. Notice the change counter appear (+/− numbers): every future edit is now measured against a baseline.
  4. Before every big rework, checkpoint again: 'commit the current state as [name].'
  5. Connect the GitHub connector once to keep the history off-machine too.
  6. Disaster recovery is one sentence: 'roll back to the last committed version.'

Copy this

prompt
Take this project under version control and commit the current state as version 1.

What to watch for

  • Version control is not /rewind: rewind undoes the agent's recent edits; commits preserve everything — including YOUR manual changes — for as long as you keep them.
  • Commit BEFORE the risky experiment, not after noticing it went wrong; the checkpoint you need is the one from ten minutes ago.

Sources

Original: conon.aiDocumentation: code.claude.com

Read next

We build and operate the systems behind tips like this one — agents, automations and internal tools, shipped into production. See what the studio does →