LinuxCommandLibrary

dolt-clone

create local copy of remote database repository

TLDR

Clone from DoltHub

$ dolt clone [owner/repo]
copy
Clone to specific directory
$ dolt clone [owner/repo] [directory]
copy
Clone with specific remote name
$ dolt clone --remote [name] [owner/repo]
copy
Clone specific branch
$ dolt clone -b [branch] [owner/repo]
copy

SYNOPSIS

dolt clone [options] repository [directory]

DESCRIPTION

dolt clone creates a local copy of a remote Dolt repository. It downloads the database including all tables, commit history, and branches from DoltHub or other Dolt remotes.
The cloned repository maintains a connection to its origin, enabling push and pull operations. By default, all branches are fetched, though single-branch cloning is available for efficiency.
This is typically the first step in collaborating on a Dolt database, bringing a shared dataset to your local environment for querying and modification.

PARAMETERS

REPOSITORY

Remote repository (owner/repo format for DoltHub).
DIRECTORY
Local directory name (defaults to repo name).
-b, --branch BRANCH
Clone specific branch.
--remote NAME
Name for the remote (default: origin).
--single-branch
Clone only one branch.
--help
Display help information.

CAVEATS

Large repositories may take time to clone. Network connectivity required. Storage space needed for full history. Authentication may be required for private repos.

HISTORY

dolt clone is part of Dolt, implementing Git's clone semantics for database repositories. It enables distributed collaboration on versioned databases through DoltHub and other remotes.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community