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 Updated 9 repo stars
A felt-lined case of identical steel dies beside a linen booklet closed with an unmarked wax seal. Caption: a contract behind every slash command.

File contents

emaraschio/cursor-commands commit 048b7237f7

Frequently asked questions

npx get-skill add emaraschio/git-sync-workspace