4

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

Dibyaranjan Jena
  • 189
  • 1
  • 2
  • 10
  • 1
    Did you previously `dvc add Training_Batch_Files\Wafer12_20012.csv`? Please also share `dvc version` and if possible the verbose output of the command that fails (add `-v`). – Jorge Orpinel Pérez Jun 08 '21 at 17:35
  • 1
    Also, is `Training_Batch_Files\Wafer12_20012.csv.dvc` listed in a .gitignore file? If so do you know why? (DVC wouldn't do that.) – Jorge Orpinel Pérez Jun 08 '21 at 17:37

2 Answers2

4

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.

Derguene
  • 51
  • 5
0

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
Sunil Garg
  • 14,608
  • 25
  • 132
  • 189
Dibyaranjan Jena
  • 189
  • 1
  • 2
  • 10