Best Practices
Best Practices
- Always verify before deleting - Use
findandlsbeforerm - Use git rm for tracked files - Preserves history and staging
- Update .gitignore first - Prevents re-adding cleaned files
- Commit cleanup separately - Keep cleanup commits distinct from feature work
- Document what was removed - Use clear commit messages
- Check file sizes - Large files may need special handling (Git LFS)