Better handling of git memory
This commit is contained in:
11
claude/integration-memory/feedback_rename_with_mv.md
Normal file
11
claude/integration-memory/feedback_rename_with_mv.md
Normal 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.
|
||||
Reference in New Issue
Block a user