Better handling of git memory

This commit is contained in:
2026-04-03 16:59:26 -04:00
parent 0da36cc8e1
commit c289fa8800
5 changed files with 83 additions and 60 deletions

View File

@@ -0,0 +1,11 @@
---
name: Use mv for file renames
description: When renaming files, use unix mv command instead of reading and rewriting — avoids transcription errors
type: feedback
---
When renaming files, use `mv` to move the file, then use Edit to fix only the lines that need changing (class names, includes, generated header references, etc.). Do NOT read the file and rewrite it from memory — this risks subtle transcription errors.
**Why:** The user caught that rewriting from memory can introduce mistakes. `mv` + targeted edits is safer and produces a cleaner diff.
**How to apply:** Any time a file needs renaming, `mv` first, then use Edit to fix class names, includes, generated header references, etc.