Sync control-center master and update submodule pointers safely.
Put this line near the top of any prompt when you need to pull latest changes and sync submodules:
@sync-modules
Keep the control-center and its submodules up to date with the latest upstream changes, while preserving clean git state and avoiding destructive operations.
mastergit fetch origin --prune
git pull --ff-only origin master
git submodule update --init --recursive
git submodule status
git -C vendor/openwork status
git -C vendor/openwork-landing status
# Update the pinned checkout to the latest main.
git -C vendor/openwork fetch origin --prune
git -C vendor/openwork switch main
git -C vendor/openwork pull --ff-only
# Record the new gitlink on control-center master.
git add vendor/openwork
git commit -m "chore: bump openwork submodule"
git push origin master
# Update the pinned checkout to the latest main.
git -C vendor/openwork-landing fetch origin --prune
git -C vendor/openwork-landing switch main
git -C vendor/openwork-landing pull --ff-only
# Record the new gitlink on control-center master.
git add vendor/openwork-landing
git commit -m "chore: bump openwork-landing submodule"
git push origin master
reset --hard, forced checkout) unless explicitly requested.master aligned with merged submodule changes.