worktree-register
Register an existing git repository folder as a base folder.
Usage
bearing worktree register <folder>
Arguments
| Argument | Description |
|---|---|
folder | Path to an existing git repository folder |
Example
# Register a newly cloned repo
git clone https://github.com/org/new-project.git
bearing worktree register new-project
What It Does
- Verifies the folder is a git repository
- Adds it to
local.jsonlas a base folder - Records its current branch and remote
When to Use
- After manually cloning a new repository
- When adding an existing project to a Bearing-managed workspace
- When migrating to Bearing from another workflow
Notes
- The folder must already exist and be a git repository
- Typically used for base folders, not worktrees
- Worktrees created with
bearing worktree neware registered automatically