Git Sync Workspace

Sync every git repo in a Cursor multi-root workspace to its remote default branch: discover roots, preflight each repo, fetch --all --prune, checkout default, pull --ff-only. Skips dirty or unsafe repos with a clear report. Use for "sync workspace", "update all repos", "back to main", or reset workspace repos to remote HEAD without losing uncommitted work.

emaraschio 048b723 5 files · 9.0 KB Updated

File contents

emaraschio/cursor-commands/tree/main/.cursor/skill-contracts/git-sync-workspace commit 048b7237f7

Frequently asked questions

npx skillmds@latest add emaraschio/git-sync-workspace