Sync

Sync local repository with origin/main. Use before starting new work, after completing a PR, or when needing latest upstream changes. Safely stashes uncommitted changes, fetches and pulls origin/main, restores stash, and cleans up stale local branches (merged or with deleted remotes). Run from a linked git worktree, it syncs main in the primary checkout instead and removes the worktree once its branch is finished. Invoke when switching contexts or preparing for new feature work.

slamb2k de2cc03 5 files · 52.8 KB Updated

File contents

slamb2k/mad-skills/tree/main/skills/sync commit de2cc0358b

Frequently asked questions

npx skillmds@latest add slamb2k/sync