Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: bad DVC file name 'Training_Batch_Files\Wafer12_20012.csv.dvc' is git-ignored

Tags:

git

python

dvc

Getting the error "ERROR: bad DVC file name 'Training_Batch_Files\Wafer12_20012.csv.dvc' is git-ignored." while trying to add local files for tracking

Python Version : 3.7

Library used:

pip install dvc pip install dvc[gdrive] dvc init

dvc add -R Training_Batch_Files

enter image description here

like image 402
Dibyaranjan Jena Avatar asked Sep 08 '25 05:09

Dibyaranjan Jena


1 Answers

The file you want to add (or the folder that contains it) is probably already in the .gitgnore file. If this is the case, you have to remove it first before doing a dvc add.

like image 60
Derguene Avatar answered Sep 09 '25 20:09

Derguene