Command Overview
All commands are available in two modes:- CLI:
brv vc <command> [args] [flags] - TUI (REPL):
/vc <command> [args] [flags]
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:
INVALID_CONFIG_KEY, CONFIG_KEY_NOT_SET, GIT_NOT_INITIALIZED
vc clone
Clone a remote space from ByteRover cloud.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.
GIT_NOT_INITIALIZED, FILE_NOT_FOUND
vc commit
Save staged changes as a commit.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:
/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.
NO_COMMITS, BRANCH_NOT_FOUND, GIT_NOT_INITIALIZED
vc reset
Unstage files or undo commits.--soft and --hard are mutually exclusive.
INVALID_REF, NOTHING_TO_RESET, GIT_NOT_INITIALIZED
Branching Commands
vc branch
List, create, or delete branches.
List branches:
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.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:
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.origin is supported as a remote name. URLs must match: https://byterover.dev/<team>/<space>.git
Show:
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.FETCH_FAILED, NO_REMOTE, AUTH_FAILED
vc pull
Pull commits from ByteRover cloud (fetch + merge).PULL_FAILED, NO_REMOTE, NO_UPSTREAM, MERGE_CONFLICT, AUTH_FAILED
vc push
Push commits to ByteRover cloud.
Push semantics:
PUSH_FAILED, NON_FAST_FORWARD, NOTHING_TO_PUSH, NO_REMOTE, NO_UPSTREAM, AUTH_FAILED