Hello.
I'm using git annex export
to export files to my android. It works, but sometimes I accidentally remove files from special remotes and want to get them back.
I repeat git annex export master --to android
command, it says everything OK, but it doesn't actually transfer anything.
How to force export of a tree to existing special remote?
If you run
then it will report a bunch of errors for all missing files. You can then run
again and it'll work.
(
git-annex-fsck --fast
will just check the presence of files; without it, it will actually checksum the files, which might be what you want.)fsck
is smart enough to understand that files are missing even if you exported some weird treeish; e.g. if you had donegit annex export master:photos/ --to android
, even though the paths would all be relative tophotos/
rather than the root, it'll still realize they're missing and do the right thing. In this case you might want to addphotos/
to yourgit-annex-fsck
command to save yourself the time of confirming that files aren't there that aren't supposed to be.