Checkout Command

The checkout command allows you to check out a specific state of your repository.

Usage

ocuroot checkout [ref]

Description

The checkout command helps you switch between different states of your repository. This is useful when you need to:

  • Review a specific version
  • Test changes from a particular state
  • Revert to a previous known good state

Arguments

  • ref: The reference to checkout (commit hash, branch name, or tag)

Examples

# Checkout a specific commit
ocuroot checkout abc123

# Checkout a branch
ocuroot checkout main

# Checkout a tag
ocuroot checkout v1.0.0
  • revert: Revert to a previous state
  • sync: Synchronize your local state