F6-L2 Git Sync MVP (v0.2.1 dogfood-feedback Track #7) #8
Reference in New Issue
Block a user
Delete Branch "feat/f6-l2-git-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
요약
로드맵 7번째 — F6-L2 Git Sync (MVP): 트레이 "지금 동기화" 가 F5 export 트리를
<profileDir>/sync/에 쓰고git add/commit/push. 앱 종료 시 자동 1회.MVP 범위 (전체 spec 의 일부만)
<profileDir>/sync/git init+git remote add)구현 (4 commits)
32c7becGitClient — 얇은 git CLI async 래퍼 (8 단위 테스트)eaf66e6SyncService — F5 export → git add → commit → push (5 단위 테스트, bare repo 통한 push 검증)66725da트레이 6번째 콜백 + on-quit drain5b6003bpromotion + README 원격 백업 섹션게이트
사용법 (README 신규 섹션)
첫 push 시
push -u <remote> <branch>자동 (no-upstream 감지).다음
로드맵 8번 (마지막): F4-C·F cue 강화 (트레이 뱃지 + 정체성 카운트).
🤖 Generated with Claude Code
F6-L2 MVP 의 오케스트레이터. - isConfigured(): syncDir 가 git repo + origin remote 있을 때만 true - sync(): 1) ExportService.export(<syncDir>, includeMedia: true) — F5 트리 그대로 덮어쓰기 2) git add -A 3) git commit -m "chore(notes): sync <ts>" 4) "nothing to commit" 이면 changed=false 로 정상 반환 5) git push (upstream 미설정이면 -u origin <branch> 자동) - GitClient.push() 에 hasUpstream() + 자동 -u 추가 (첫 push 케이스) - 5 vitest cases — bare local remote 로 push 검증, 두 번째 sync 는 변경 없음 확인 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>- 신규 spec docs/superpowers/specs/2026-04-26-f6-l2-git-sync.md 결정 표 + 범위 + 시스템 의존 + 동작 요약 + 후속 후보 - 2026-04-25-dogfood-feedback.md F6 진행 상태 line 갱신: L2 — 🌱 raw → 🚀 promoted (MVP) - README.md '원격 백업 (선택, F6-L2)' 섹션: 일회 설정 (git init + remote add + 자격증명) + 사용법 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>