Skip to content

Instantly share code, notes, and snippets.

View sohei1l's full-sized avatar

Soheil H sohei1l

View GitHub Profile
@sohei1l
sohei1l / claude-revert-checkpoint.md
Last active July 15, 2025 08:19
CLAUDE.md rule for Git based Undo/Checkpoint in Claude Code

⚠️ MANDATORY SESSION RULES - MUST FOLLOW IMMEDIATELY

IMPORTANT: At the VERY START of any coding task, you MUST:

  1. Create a new branch using the format: claude-session-YYYYMMDD-[topic]
  2. Push the branch to origin
  3. Start committing changes immediately

Session Workflow

Starting a Session