Skip to main content

sync-directives

Sync directives from the main branch to your current branch.

Usage

era-code sync-directives [options]

Options

OptionDescription
-f, --from <branch>Source branch (default: main)
-n, --dry-runShow 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

  1. Fetches latest changes from the remote
  2. Shows a diff of directive changes
  3. Asks for confirmation before applying
  4. Checks out directive files from the source branch
  5. 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