I just started with DVC. I have a git repo in which there are heavy models that i want to push to dvc. So I initialized the dvc by
dvc init
and then configured the bucket
dvc remote add -d storage s3://mybucket/dvcstore
Now there is /models
folders, in which there was .gitkeep
file and trained models. Following entry was in my .gitignore
*.tar.gz
I ran the following command
git rm -r --cached my_server\models
and added the following in the .gitignore
models
I want to add all the tar.gz
files to push on dvc
so i tried
dvc add ./my_server/models/*.tar.gz
but this is showing
ERROR: bad DVC file name 'my_server\models\*.tar.gz.dvc' is git-ignored.
If I do dvc add ./my_server/models/
then this folder is added and a models.dvc
file gets created. then git code shows for the changes.
what is the correct way, do i need to mention *.dvc
to .gitignore
as well?