title: git "error: corrupt loose object" after moving a directory
body: <p>I'm not sure if I had this error because I moved the directory that had all project files and .git but the error appeared around that time.</p>
  
  <pre><code>&gt; git fsck 
  error: corrupt loose object '25a196217ebb6e341909205575f491022eafc4d9'
  fatal: loose object 25a196217ebb6e341909205575f491022eafc4d9 (stored in .git/objects/25/a196217ebb6e341909205575f491022eafc4d9) is corrupt
  </code></pre>
  
  <p>I searched for an answer and tried few things nothing worked.</p>
  
  <p><a href="https://stackoverflow.com/questions/801577/how-to-recover-git-objects-damaged-by-hard-disk-failure">How to recover Git objects damaged by hard disk failure?</a>
  resulted in </p>
  
  <pre><code>mv: cannot stat `.git/objects/pack/*': No such file or directory
  fixgit.sh: line 3: tmpgit/*.pack: No such file or directory
  rm: cannot remove `tmpgit/*': No such file or directory
  </code></pre>
  
  <p><code>.git/objects/pack/</code> is empty. It puzzles me why it's empty.</p>
  
  <p><code>--full</code> option didn't help.</p>
  
  <p>My next option is to revert and start over. And for the next time, I'll keep a backup up and will check git before backing up.</p>
  
  <p><strong>Additional info:</strong>
  here is what i get when i look at the content of the object</p>
  
  <pre><code>&gt; git cat-file -p 25a196217ebb6e341909205575f491022eafc4d9
  error: corrupt loose object '25a196217ebb6e341909205575f491022eafc4d9'
  fatal: loose object 25a196217ebb6e341909205575f491022eafc4d9 (stored in .git/objects/25/a196217ebb6e341909205575f491022eafc4d9) is corrupt
  </code></pre>
  
  <p>and type:</p>
  
  <pre><code>&gt; git cat-file -t 25a196217ebb6e341909205575f491022eafc4d9
  blob
  </code></pre>