发布于 2019-09-17 04:18:09
根据DVC不和谐服务器上的mroutis:
dvc unprotect文件;如果您不使用symlink或hardlink缓存,这是不必要的,但不会有任何伤害。dvc gc,或在data.dvc中查找MD5并手动从.dvc/cache中删除它。编辑--现在他们的Github页面出现了一个问题,可以将其添加到手册中:https://github.com/iterative/dvc.org/issues/625
发布于 2021-08-23 19:30:01
对于未提交的文件,dvc remove似乎做了您需要的事情--至少对于不在管道中的文件。关键(从错误或文档中我不清楚)是传递….dvc文件名,否则它会尝试将其作为一个节从dvc.yaml中找到并删除。
# Precondition: DVC is configured for the repo. No dvc.yaml file (untested with it)
$ touch so-57966851.txt
$ dvc add so-57966851.txt
WARNING: 'so-57966851.txt' is empty.
100% Adding...|████████████████████████████████████████|1/1 [00:00, 49.98file/s]
To track the changes with git, run:
git add .gitignore so-57966851.txt.dvc
# Ooops! I did the wrong thing! I didn't mean to add that…
$ dvc remove so-57966851.txt.dvc
$ ll so-*.txt
-rw-r--r-- 1 ibboard users 0 Aug 23 20:27 so-57966851.txt(用2.5.4版进行测试)
https://stackoverflow.com/questions/57966851
复制相似问题