I dvc add
-ed a file I did not mean to add. I have not yet committed.
How do I undo this operation? In Git, you would do git rm --cached <filename>
.
To be clear: I want to make DVC forget about the file, and I want the file to remain untouched in my working tree. This is the opposite of what dvc remove
does.
One issue on the DVC issue tracker suggests that dvc unprotect
is the right command. But reading the manual page suggests otherwise.
Is this possible with DVC?
rm -f <filename>; dvc gc
– Brummett