forum/recover deleted files ?git-annexhttp://git-annex.branchable.com/forum/recover_deleted_files___63__/git-annexikiwiki2013-12-22T03:51:38Zgit checkouthttp://git-annex.branchable.com/forum/recover_deleted_files___63__/comment_1_d7abb7c45c6ec2723a04f153ed215453/svend [ciffer.net]2013-11-27T22:47:37Z2012-10-24T22:50:05Z
You can use <code>git checkout -- file</code> to restore the link. <code>git status</code> will display information for restoring the file.
it's a git repository...http://git-annex.branchable.com/forum/recover_deleted_files___63__/comment_2_8ea2acaa30d3ee7e9f75310f4ec859b2/joeyh.name2013-11-27T22:47:37Z2012-10-25T03:29:20Z
So any git stuff can be used. If you deleted a file, committed it, and want to undo that, you can <code>git log --stat</code> to find the commit, and <code>git revert</code> it. If you deleted a file, haven't committed yet, and want one more look at it, you can <code>git stash</code> to get it back, and <code>git stash apply</code> to re-stash the change. Or yeah, just <code>git checkout</code> to get back a deleted file you have not committed yet.
ok, that worked.http://git-annex.branchable.com/forum/recover_deleted_files___63__/comment_3_376de81c70799bf409be189a48234815/ka72013-11-27T22:47:37Z2012-10-25T20:15:26Z
<p>i think of a kind of "WORM-library", so basically just add, not allow to remove content. (at least not for the user thru the mounted device)
- so a script to add/commit -- but as stag-1 check for delete files and get them back. some git magic needed, but should be doable.
- or thru "samba" parameters set to add but not delete/overwrite files. (read yes, write yes, delete no) -- to be proved thats possible, but not your job <img src="http://git-annex.branchable.com/smileys/smile.png" alt=":)" /> ( annex-ing via cron every /5 or via inotify)
so yea, will play for a while and maybe come back with new. thanks to everybody.
<3 git-annex <3</p>
After the fact...http://git-annex.branchable.com/forum/recover_deleted_files___63__/comment_4_2e73ac530d65a01768a57058b7220a29/Chad2013-12-22T03:51:38Z2013-12-22T03:51:36Z
I've run into a situation where I've inadvertently deleted a file from my Andriod-driven annex repo rather than dropping the file. (A set of very large <em>.flac files, to be exact.) These are now gone from the repo on my laptop and the repo on my workstation. When looking at the <code>git --log stat' call, I see the addition of these files, but I do not see their deletion. When running</code>git annex unused', I found references to the </em>.flac files, their SHA key, and indeed found the commit they were associated with. I have not dropped these unused files. How to I recover them?