learning_ai_common_plat/.windsurf/workflows/repo_backup-and-push.md
saravanakumardb1 d510867b87 docs(workflows): Update repo management workflows for all 7 repos
Add missing repositories to workflow documentation:
- learning_ai_jarvis_jr
- learning_ai_peakpulse

Updated workflows:
- repo_backup-and-push.md
- repo_sync-repos.md
- repo_commit-workspace.md
- repo_backup-main-branch.md
- repo_push-repos.md
2026-03-03 10:54:18 -08:00

1.5 KiB

description
Backup main branches then push all repos to origin in sequence

Backup & Push All Repos

Combines /repo_backup-main-branch and /repo_push-repos into a single sequential workflow. Ideal for end-of-session save-all.

Step 1: Backup main branches

Creates timestamped backup branches with smart duplicate detection.

// turbo Run bash scripts/backup-main.sh from any repository root

Step 2: Push all repos to origin

// turbo

for repo in learning_ai_common_plat learning_voice_ai_agent learning_multimodal_memory_agents learning_ai_clock learning_ai_fastgap learning_ai_jarvis_jr learning_ai_peakpulse; do
  echo "━━━ Pushing $repo ━━━"
  (cd ~/code/mygh/$repo && git push origin main 2>&1)
done
echo ""
echo "✨ All repos pushed!"

What it does:

  1. Backup — creates timestamped backup branches, cleans up old ones (7 days), skips duplicates
  2. Push — pushes main to origin/main for all 7 repos

Repositories:

  • learning_ai_common_plat
  • learning_voice_ai_agent
  • learning_multimodal_memory_agents
  • learning_ai_clock
  • learning_ai_fastgap
  • learning_ai_jarvis_jr
  • learning_ai_peakpulse

When to use:

  • End of a work session
  • Before switching machines
  • After a batch of commits across repos
  • Anytime you want a safe checkpoint + sync to remote

Notes:

  • Backup runs first so the backup branch includes the latest local commits
  • Push only pushes main — backup branches are pushed by the backup script itself
  • If push fails (diverged remote), run /repo_sync-repos first to pull