sync-directives
Sync directives from the main branch to your current branch.
Usage
era-code sync-directives [options]
Options
| Option | Description |
|---|---|
-f, --from <branch> | Source branch (default: main) |
-n, --dry-run | Show diff without applying |
Examples
Sync from main
era-code sync-directives
Preview changes
era-code sync-directives --dry-run
Sync from a different branch
era-code sync-directives --from develop
What It Does
- Fetches latest changes from the remote
- Shows a diff of directive changes
- Asks for confirmation before applying
- Checks out directive files from the source branch
- Stages the changes for commit
When to Use
- After pulling updates that include directive changes
- When working on a feature branch and need latest directives
- To resolve directive drift between branches
OpenCode Command
You can also sync directives from within OpenCode:
/era-sync-directives