Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
fullstack ruleP1universalStack: universal
gitfilesystemcase-sensitivitydeployment
Use git mv for case-only file or folder renames
On case-insensitive filesystems a case-only rename isn't tracked and breaks on case-sensitive deploy targets; use git mv so the change is recorded.
PR: hegnar-forum-web · org-mining-hist-2026-06Created: Jun 20, 2026
Bad example
Old codetext
| 1 | # Renaming in Finder/editor on macOS: View -> view |
| 2 | # Git doesn't record the case change; build fails on Linux import. |
Explanation (EN)
Objašnjenje (HR)
Good example
New codebash
| 1 | git mv View view |
| 2 | # Works for folders too; the case change is tracked and deploys correctly. |
Explanation (EN)
Objašnjenje (HR)