FrançaisChoose your hat

Procedure · Developer

Set restore points

Make sure that every working state of the project can be returned to, with Git commits, branches and a clean .gitignore, and know what a code rollback does not bring back.

Specialties: Website or web app, Mobile app · Checked 6 December 2026

Steps the AI follows

  1. Look before acting
  2. Fix .gitignore first
  3. Commit a clean state
  4. Work on a branch
  5. Commit small and often
  6. Keep a remote copy
  7. Explain how to go back
  8. Say what Git does not cover

Reference sheets it uses

  • Restore points with Git
    The .gitignore file, Git commands ranked from safest to riskiest, and what a code rollback does not bring back.
  • Secrets: where to keep them and what to do after a leak
    Where each kind of secret belongs, how to spot a leak, and the order of actions when a key is exposed.

The full text of each step, the checks and the reference sheets are served to your AI by the hat’s MCP server, once you subscribe.

Sources

  1. Git documentation: git-revert
  2. Git documentation: gitignore
  3. GitHub Docs: Removing sensitive data from a repository