Skip to content

dvc add -R dir #1026

@tdeboissiere

Description

@tdeboissiere

Thanks for the great project !

Let's say I have the following workflow:

data/dataset1/dataset1.csv
data/dataset2/dataset2.csv

dvc add data/dataset1 && git add data/dataset1.dvc --> creates data/dataset1.dvc and tracks with git
dvc add data/dataset2 && git add data/dataset2.dvc --> creates data/dataset2.dvc and tracks with git

Now let's say I modify both dataset1.csv and dataset2.csv I want to add both updates to dvc in a single command
dvc add data --> this fails because data contains files tracked by git.

Would it be possible to support that use case (i.e. ignore the git-tracked files when running dvc add)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions