Any temporary files created during development MUST be immediately added to .gitignore
- Migration logs:
*-migration.txt,*-migration.log - Debug files:
debug*.txt,debug*.log - Development notes:
dev-notes*.txt,scratch*.txt - AI assistant outputs:
ai-*.txt,copilot-*.txt - Backup files:
*.backup,*.bak,*.orig - Test files:
test*.log,temp-*.txt
- Before creating: Check if pattern exists in .gitignore
- After creating: Add specific pattern if not covered
- Use broad patterns: Cover future scenarios with wildcards
- Document reasoning: Add comments explaining the pattern
All temporary files should be added to the "Development and Migration Temporary Files" section in .gitignore with descriptive comments.
# Branch migration and development logs
branch-migration-log.txt
migration-*.txt
*-migration.log
# AI assistant temporary outputs
copilot-*.txt
assistant-*.logThis ensures clean repositories and prevents accidental commits of temporary development artifacts.