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

3.9k Views Asked by At

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

2

There are 2 best solutions below

0
On

Git might be tracking these files
To stop tracking from Git:

git rm -r --cached Training_Batch_Files
git commit -m "stop tracking Training_Batch_Files" 

Your firewall may be blocking the same, hence disable it from blocking then run below command.

dvc add -R  Training_Batch_Files
0
On

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.