Hey there,
I am playing around with git-annex to handle my files and backup's. Sometimes, I wish to delete a file entirely from my local repo and any other repo that contains the file.
First, I drop the file from my local repo and run git-annex sync --content. Then I run git annex whereis and drop the file from other repo's. Subsequently, I run git annex whereis to ensure that the file has been dropped and does not exist in any repo.
However, git annex still tracks the file, but I just have 0 copies of it. How do I remove/delete/disable tracking of a single file or multiple files?
The reason why I have deleted the file is that I don't want it in any of my repo's any longer.
If you want to stop tracking a file, just delete it, and then run git annex sync.
There are some other commands (and settings in the assistant) for managing unused content. That is, files in the annex that are no longer referenced/used.
I did some digging. When creating a repo from the webapp, it is per default in direct mode. In direct mode, I am not able to run any git commands such as git commit. Subsequently, when running git annex sync. Files added when sync is disabled from the webapp are not committed.
Is git-annex behaving as expected here?
Described behavior sounds right to me. If you've clicked on "syncing enabled" in the webapp for the local repository, so it's changed to "syncing disabled" then the webapp won't automatically commit file deletions/adds. Click on it again and it'll catch up with any changes you made while it was disabled.