# Task Breakdown / 任务拆分

## Overview / 概述

| Status      | Count |
| ----------- | ----- |
| Total       | 5     |
| Done        | 5     |
| In Progress | 0     |
| Pending     | 0     |

## Tasks / 任务列表

### High Priority / 高优先级

- [x] T1: Implement remote branch listing
  - List all branches for given remote
  - Filter out HEAD -> tracking aliases
  - Strip remote prefix for branch names

- [x] T2: Implement branch backup logic
  - Create `bak-{date}/{branch}` from remote tracking branch
  - Skip existing branches (with log)
  - Force overwrite with `--force` flag

### Medium Priority / 中优先级

- [x] T3: Add fetch before backup
  - Fetch from remote with --prune
  - Gracefully handle fetch failure

- [x] T4: Integrate into CLI command system
  - Add BakRemotesArgs struct
  - Register BakRemotes in GitCommands enum
  - Add chrono dependency to Cargo.toml

### Low Priority / 低优先级

- [x] T5: Add user-friendly output
  - Show per-branch status ([ok], [skip], [failed], [overwrite])
  - Show summary (backed up / skipped / failed counts)
  - Show helper commands (list / delete backups)
