811 B
811 B
| description |
|---|
| Smart backup of main branches with duplicate detection |
Backup Main Branch
Creates smart backups of main branches across all repositories.
// turbo
Run bash ~/code/mygh/learning_ai_common_plat/scripts/backup-main.sh from any directory
What it does:
- Checks each repository for changes
- Skips backup if main hasn't changed since last backup
- Creates timestamped backup branch
- Cleans up old backups (keeps 7 days)
- Returns to main branch
Repositories covered:
- learning_ai_common_plat
- learning_voice_ai_agent
- learning_multimodal_memory_agents
- learning_ai_clock
- learning_ai_fastgap
Features:
- Smart duplicate detection
- Automatic cleanup of old backups
- Multi-repo support
- Safe operations (always returns to main)
- Color-coded output for clarity