| name | multi-repo-git |
|---|---|
| description | Use when performing git operations (sync, branch, status) across the SEBT multi-repo project — switching branches, pulling latest, creating feature branches, or checking repo state |
| allowed-tools | Bash(git -C:*) |
Manage git operations across the SEBT portal's four repositories in parallel.
# Assumes all four SEBT repos are sibling directories under a common parent
SEBT_BASE="$(dirname "$(git rev-parse --show-toplevel)")"
portal="$SEBT_BASE/sebt-self-service-portal"
state_connector="$SEBT_BASE/sebt-self-service-portal-state-connector"
dc_connector="$SEBT_BASE/sebt-self-service-portal-dc-connector"
co_connector="$SEBT_BASE/sebt-self-service-portal-co-connector"
All git commands MUST use git -C <repo-path> to be explicit about the target directory.
Default: all four repos. User may specify a subset.
- Run
git -C <path> checkout mainon each repo (parallel) - Run
git -C <path> pullon each repo (parallel) - Report results in a summary table
Requires: branch name from user, and which repos to target (ask if not specified).
- To create:
git -C <path> checkout -b <branch> - To checkout existing:
git -C <path> checkout <branch>
Run in parallel across targeted repos. Report results.
Run git -C <path> status --short --branch on all four repos in parallel.
Present as a summary table:
| Repo | Branch | Clean? | Tracking |
|---|
- Parallel execution: Always run independent git commands across repos in parallel (multiple Bash tool calls in one message).
- Atomic commands: Each
git -Ccall is a separate Bash invocation. Never chain with&∨. - Read-only by default: Only
syncandstatusrun without confirmation. Forbranch, confirm the branch name and target repos before executing. - Always summarize: End every operation with a concise table showing results per repo.