title: Repair Missing Tree
body: <p>My git repo has become corrupted and unfortunately it only exists locally.</p>
  
  <pre><code>$ git fsck --full
  Checking object directories: 100% (256/256), done.
  broken link from    tree 54b4ff576b2e39831a298e58a38d91890f622b63
                to    tree d564d0bc3dd917926892c55e3706cc116d5b165e
  missing tree d564d0bc3dd917926892c55e3706cc116d5b165e
  </code></pre>
  
  <p>I checked into what <code>d564d0bc</code> is, and it is my <code>log/</code> folder in a rails project. This folder only contains <code>*.log</code> files (which are ignored) and a <code>.gitkeep</code> file.</p>
  
  <p>I tried following the steps mentioned in this <a href="https://stackoverflow.com/questions/7236738/how-can-i-recover-my-git-repository-for-a-missing-tree-error">post</a>, but I'm using GitHub for Windows and powershell is screaming at me over an empty pipe.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Update: I copied the project into linux so I wouldn't have to worry about powershell commands. I still haven't found a solution though.</p>