Skip to main content

Command Overview

All commands are available in two modes:
  • CLI: brv vc <command> [args] [flags]
  • TUI (REPL): /vc <command> [args] [flags]
Both modes accept the same arguments and flags. The examples below use the CLI format — replace brv vc with /vc for TUI usage.

Setup Commands

vc init

Initialize version control for the current space.
Safe to re-run — reports “reinitialized” without losing history. Errors: ALREADY_INITIALIZED

vc config

Get or set commit author identity. Configuration is local to the current space — each space maintains its own author identity.
Set a value:
Read a value:
Errors: INVALID_CONFIG_KEY, CONFIG_KEY_NOT_SET, GIT_NOT_INITIALIZED

vc clone

Clone a remote space from ByteRover cloud.
Errors: CLONE_FAILED, AUTH_FAILED, INVALID_REMOTE_URL

Staging & History Commands

vc add

Stage files for the next commit.
Accepts zero or more paths. Paths are relative to the context tree root.
Errors: GIT_NOT_INITIALIZED, FILE_NOT_FOUND

vc commit

Save staged changes as a commit.
Errors: USER_NOT_CONFIGURED, NOTHING_STAGED, GIT_NOT_INITIALIZED

vc status

Show working tree status.
Returns:

vc diff

Show changes between commits, the index, or the working tree.
The ref argument decides what is being compared:
Also available in the TUI as /vc diff with the same arguments and flags. Errors: INVALID_REF, GIT_NOT_INITIALIZED

vc log

Show commit history.
Each log entry includes: SHA, message, author (name + email), timestamp.
Errors: NO_COMMITS, BRANCH_NOT_FOUND, GIT_NOT_INITIALIZED

vc reset

Unstage files or undo commits.
--soft and --hard are mutually exclusive.
Errors: INVALID_REF, NOTHING_TO_RESET, GIT_NOT_INITIALIZED

Branching Commands

vc branch

List, create, or delete branches.
List branches:
Create a branch:
Delete a branch:
Set upstream:
Errors: BRANCH_ALREADY_EXISTS, BRANCH_NOT_FOUND, BRANCH_NOT_MERGED, CANNOT_DELETE_CURRENT_BRANCH, INVALID_BRANCH_NAME

vc checkout

Switch to an existing branch, or create and switch in one step.
Errors: BRANCH_NOT_FOUND, UNCOMMITTED_CHANGES, BRANCH_ALREADY_EXISTS (with -b)

vc merge

Merge a branch into the current branch.
--abort and --continue are mutually exclusive. Start a merge:
Handle conflicts:
Unrelated histories:
Errors: MERGE_CONFLICT, MERGE_IN_PROGRESS, NO_MERGE_IN_PROGRESS, CONFLICT_MARKERS_PRESENT, ALLOW_UNRELATED_HISTORIES

Remote Commands

vc remote

Show, add, update, or remove the remote connection.
Only origin is supported as a remote name. URLs must match: https://byterover.dev/<team>/<space>.git Show:
Add:
Update:
Remove:
After removing the remote, brv vc push, brv vc pull, and brv vc fetch will fail with NO_REMOTE until you add it again. Errors: REMOTE_ALREADY_EXISTS, INVALID_REMOTE_URL, NO_REMOTE

vc fetch

Fetch refs from ByteRover cloud without modifying local branches.
Errors: FETCH_FAILED, NO_REMOTE, AUTH_FAILED

vc pull

Pull commits from ByteRover cloud (fetch + merge).
Errors: PULL_FAILED, NO_REMOTE, NO_UPSTREAM, MERGE_CONFLICT, AUTH_FAILED

vc push

Push commits to ByteRover cloud.
Push semantics:
Errors: PUSH_FAILED, NON_FAST_FORWARD, NOTHING_TO_PUSH, NO_REMOTE, NO_UPSTREAM, AUTH_FAILED

Error Code Reference

Complete list of error codes across all commands:

Initialization Errors

Configuration Errors

Staging & Commit Errors

Branch Errors

Merge Errors

Remote & Sync Errors

Legacy Command Errors