mlvtools-tutorial icon indicating copy to clipboard operation
mlvtools-tutorial copied to clipboard

Update command

Open BioGeek opened this issue 5 years ago • 2 comments

Currently running the command git add ./dummy *.dvc gives the error:

fatal: pathspec '*.dvc' did not match any files

because upon dvc init, a .dvc folder is created but not any files with extension *.dvc. I also added the .mlvtools file that is created by the make dummy-conf step.

BioGeek avatar Aug 27 '20 09:08 BioGeek

Also, after you do dvc add ./dummy/data/dummy_pipeline_feed.txt you get the error:

Adding...
ERROR:  output 'dummy/data/dummy_pipeline_feed.txt' is already tracked by SCM (e.g. Git).
    You can remove it from Git, then add to DVC.
        To stop tracking from Git:
            git rm -r --cached 'dummy/data/dummy_pipeline_feed.txt'
            git commit -m "stop tracking dummy/data/dummy_pipeline_feed.txt"

Because with git add ./dummy you added the dummy_pipeline_feed.txt file as well.

BioGeek avatar Aug 27 '20 09:08 BioGeek

After having followed the steps to stop Git from tracking dummy_pipeline_feed.txt and rerunning dvc add ./dummy/data/dummy_pipeline_feed.txt, I also did the following to track the dvc metadata.

git add dummy/data/dummy_pipeline_feed.txt.dvc dummy/data/.gitignore
git commit -m "Add raw data"

BioGeek avatar Aug 27 '20 10:08 BioGeek