LinuxCommandLibrary

dvc-init

initialize data version control

TLDR

Initialize DVC in repository

$ dvc init
copy
Initialize without Git integration
$ dvc init --no-scm
copy
Initialize in subdirectory
$ dvc init --subdir
copy

SYNOPSIS

dvc init [options]

DESCRIPTION

dvc init initializes Data Version Control in a directory, creating the .dvc directory structure. This sets up DVC for tracking large files, datasets, and machine learning models alongside Git version control.
Should be run in a Git repository for full functionality, though the --no-scm option allows standalone operation. The command creates configuration files, cache directory, and integrates with Git by adding .dvc files to .gitignore.

PARAMETERS

--no-scm

Initialize without Git.
--subdir
Initialize in subdirectory of Git repo.
-f, --force
Force re-initialization.

CONFIGURATION

.dvc/config

Local repository configuration including remotes, cache settings, and execution parameters.
.dvc/config.local
Local machine-specific settings not tracked in Git, such as credentials and cache locations.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community