Prerequisites
Before using Git-Semantic version control, make sure you have:- ByteRover CLI installed — See Quickstart for installation instructions
For cloud sync only (push, pull, fetch, clone): You also need a ByteRover account and a remote space. See Remote Sync for details.
Initialize Version Control
Set up Git-Semantic version control for your context tree. This is required before you can use any othervc commands.
- CLI
- TUI
What vc init Does
- Creates the internal Git data structures inside your
.brv/directory - Sets up the default
mainbranch - Prepares the staging area (index) for tracking changes
vc init automatically adds .brv/ to your .gitignore to prevent conflicts with the nested Git repository inside .brv/context-tree/.
Configure Author Identity
Before you can commit, you must set your name and email. These are attached to every commit you create, identifying who made each change.Supported Configuration Keys
| Key | Description | Example |
|---|---|---|
user.name | Author name shown in commit log | "Alice Chen" |
user.email | Author email shown in commit log | "alice@example.com" |
INVALID_CONFIG_KEY error.
Reading vs Setting
- Set a value:
brv vc config <key> <value>— provide both the key and the value - Read a value:
brv vc config <key>— omit the value to read the current setting
CONFIG_KEY_NOT_SET error.
Error Handling
| Error | Cause | Solution |
|---|---|---|
INVALID_CONFIG_KEY | Key is not user.name or user.email | Use a supported key |
CONFIG_KEY_NOT_SET | Key hasn’t been configured yet | Set it with vc config <key> <value> |
GIT_NOT_INITIALIZED | VC not initialized | Run vc init first |
Clone a Remote Space
To work with an existing space from ByteRover cloud, clone it to your local machine. This downloads the full context tree along with its complete commit history.- CLI
- TUI
Clone URL Format
| Segment | Description | Example |
|---|---|---|
<team> | Your team or organization name | acme |
<space> | The space name | project |
What vc clone Does
- Downloads the full commit history from ByteRover cloud
- Creates the
.brv/directory with the context tree - Checks out the default branch (usually
main) - Configures
originremote pointing to the cloud space - Streams real-time progress during the download (CLI)
Error Handling
| Error | Cause | Solution |
|---|---|---|
CLONE_FAILED | Network error or invalid URL | Check the URL and your internet connection |
AUTH_FAILED | Not authenticated or insufficient permissions | Log in with brv login and verify team access |
INVALID_REMOTE_URL | URL doesn’t match the expected format | Use the format https://byterover.dev/<team>/<space>.git |
Clone operations have a 120-second timeout. For spaces with very large context trees, ensure a stable network connection.
Typical First-Time Setup
Local Only (no account needed)
Use Git-Semantic purely on your machine — no login, no cloud, no remote space:- CLI
- TUI
Local to Cloud (requires login + remote space)
Start locally, then push to ByteRover cloud when you’re ready to collaborate:- CLI
- TUI
Clone an Existing Space (requires login)
Join a team project by cloning an existing space from ByteRover cloud:- CLI
- TUI
What’s Next
Now that version control is set up, learn how to track changes:Staging & Committing
Stage changes, create commits, and view history
Remote Sync
Push and pull context to ByteRover cloud