forum/How to restore symlinksgit-annexhttp://git-annex.branchable.com/forum/How_to_restore_symlinks/git-annexikiwiki2013-11-27T22:47:37Zgit annex fixhttp://git-annex.branchable.com/forum/How_to_restore_symlinks/comment_1_c67e752cf7d5431096fab4b3304790a7/Marco2013-11-27T22:47:37Z2012-11-24T08:51:19Z
<p>You can try
git annex fix yourDirectory</p>
<p>Hope that helps.</p>
comment 2http://git-annex.branchable.com/forum/How_to_restore_symlinks/comment_2_f9ec6096595e2c149c48924e3b54542f/joeyh.name2013-11-27T22:47:37Z2012-11-25T18:35:56Z
<p>The key thing to realize is that the symlinks used by git-annex are checked into git like any other file would be. So you can use the entire git toolkit to manage them.</p>
<p>For example, you could run <code>git status</code> to see if git shows them as recently deleted, and then use <code>git checkout $file</code> to restore the deleted files.</p>
<p>Or perhaps the deletion has been committed to git, and then you'd use <code>git log --stat</code> to find the commit that deleted your files, and <code>git revert</code> could be used to undo it.</p>
<p>(<code>git annex fix</code> is not related to this and won't help.)</p>
Thankshttp://git-annex.branchable.com/forum/How_to_restore_symlinks/comment_3_4ff80729787a2a4e2baf05dd1db37da3/jbee2013-11-27T22:47:37Z2012-11-28T11:52:24Z
<blockquote><p>deletion has been committed to git, and then you'd use git log --stat to find the commit that deleted your files, and git revert could be used to undo it.</p></blockquote>
<p>That did the trick.</p>
<p>Thanks Joey, for the answer and the magnificence that is git-annex.</p>