mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Allow non-technical users to switch branches from the Web UI without needing a terminal. The dropdown shows local branches first, then remote-only branches tagged "(remote)". Backend: - Add ListLocalBranches, ListRemoteBranches, Checkout to internal/git - Add GET /api/git/branches (?fetch=true for remote discovery) - Add POST /api/git/checkout with dirty-check guard + fetch-before-switch - Oplog instrumentation for checkout operations Frontend: - Branch Select dropdown replaces static text when >1 branch exists - Refresh button to fetch new remote branches on demand - Dirty state disables switching with visual hint - Card overflow + z-index fix for playful theme dropdown clipping