Forrest logo
back to the dvc tool

dvc-add:tldr:64cf1

dvc-add: Recursively add all the files in a given target directory.
$ dvc add --recursive ${path-to-directory}
try on your machine

The command dvc add --recursive ${path-to-directory} is used in DVC (Data Version Control) to add data files into the DVC repository. Let's break down the command:

  • dvc: It refers to the DVC command-line tool.
  • add: It is a command used to add files or directories to the DVC repository.
  • --recursive: This flag indicates that all the files and directories within the specified directory should be added recursively.
  • ${path-to-directory}: This is the placeholder for the path to the directory you want to add to the DVC repository. You should replace ${path-to-directory} with the actual path to your desired directory.

By running this command, you can add a complete directory along with its contents to your DVC repository. It allows you to track and version control your data files effectively, ensuring reproducibility and easy collaboration in machine learning and data science projects.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dvc tool