learning_ai_common_plat/.windsurf/workflows/repo_push-repos.md
saravanakumardb1 7e3de866d3 refactor(workflows): centralize repo list in repos.txt
- Create repos.txt as single source of truth for all 7 workspace repos

- Update all repo-management workflows to source from repos.txt:

  - repo_sync-repos, repo_push-repos, repo_backup-and-push

  - repo_backup-main-branch, repo_commit-workspace

Benefits:

- One file to update when adding/removing repos

- Consistent repo list across all workflows

- Scripts can read repos.txt for automation
2026-03-03 16:16:12 -08:00

1.1 KiB

description
Push local main branch to origin for all 7 workspace repos

Push Repos

Pushes local main to origin/main for all workspace repositories.

// turbo

while IFS= read -r repo; do
  [[ -z "$repo" || "$repo" =~ ^# ]] && continue
  echo "━━━ $repo ━━━"
  (cd ~/code/mygh/$repo && git push origin main)
done < ~/code/mygh/learning_ai_common_plat/.windsurf/workflows/repos.txt

What it does:

  1. Iterates over all 7 workspace repos
  2. Runs git push origin main in each
  3. Fails fast if a repo has diverged from remote (resolve with rebase manually)

Repositories:

See repos.txt for the canonical list of all workspace repositories.

When to use:

  • After committing a batch of changes locally
  • After running /repo_commit-workspace
  • To sync local work to GitHub before switching machines

Notes:

  • Only pushes main — does not push other branches
  • Will fail safely if remote has diverged — run /repo_sync-repos first then rebase
  • Use /repo_sync-repos to pull before pushing if you've been working on another machine