catalog set-remote

Configure the catalog’s git remote.

The catalog supports at most one git remote (ADR-0011). If no git remote is configured, this command sets one. If a git remote is already configured, this command refuses unless --force is passed— guarding against typos that would silently delete the configured remote.

Usage

xorq catalog set-remote URL [OPTIONS]

Arguments

  • URL—Git remote URL to configure.

Options

Option Default Description
--name origin Remote name.
--force off Replace the existing git remote (otherwise this command refuses to overwrite).

Examples

# First-time setup
xorq catalog --path ~/flights-catalog set-remote git@github.com:me/flights-catalog.git
# Replace an existing remote
xorq catalog set-remote git@github.com:me/flights-catalog.git --force

See also