worktree-sync
Rebuild the manifest files from git state.
Usage
bearing worktree sync
When to Use
Run this after:
- Fresh clone of your workspace
- Manual git operations outside Bearing
- Recovering from corrupted state files
What It Does
- Scans all folders in the workspace
- Detects git repositories and worktrees
- Rebuilds
local.jsonlfrom discovered state - Preserves workflow metadata from
workflow.jsonl
Example
# After cloning your workspace on a new machine
git clone --recurse-submodules https://github.com/user/workspace.git
cd workspace
bearing worktree sync
Notes
- Git is the source of truth—this command just rebuilds the cache
- Existing workflow metadata (purposes, status) is preserved
- New worktrees discovered are added to the manifest