Update a worktree to latest main
Table of Contents
When to use this skill
When the user asks to update, sync, or refresh a worktree against main — e.g. "update this environment to latest main", "sync my checkout", "bring this worktree up to date" — beyond a plain branch sync (see pr-sync-branch for that).
How to use this skill
Fetch and detach onto the latest main commit:
git fetch origin main && git checkout --detach origin/main
Check
git status --porcelainfirst; stash or commit anything unexpected before checking out.Sync the vcpkg submodule to what main's tree expects:
git submodule update --init vcpkg
Rebuild settings and skills so the Claude Code harness picks up org-source changes:
./projects/ores.compass/compass.sh build --direct settings ./projects/ores.compass/compass.sh build --direct skills
Remind the user to
/reload-skillsafterwards.- Verify with
compass bearings— the "Is the environment up?" section flags any remaining =.env=/vcpkg/settings drift.