title: Git push error: object file is empty/loose object is corrupt
body: <p>I was attempting to perform a git commit using Git Gui. I staged a few files, and then my computer suddenly shut off due to low battery. I plugged it in, turned it back on, and committed the files I wanted to. Then I ran <code>git push</code>, like I've done a million times before with no issues, and this time I got the following error:</p>
  
  <pre><code>Counting objects: 8, done.
  error: object file .git/objects/b5/60c934f6bad40f4f246973afc0139ed91a2d32 is empty
  Compressing objects: 100% (4/4), done.
  error: object file .git/objects/b5/60c934f6bad40f4f246973afc0139ed91a2d32 is empty
  fatal: loose object b560c934f6bad40f4f246973afc0139ed91a2d32 (stored in .git/objects/b5/60c934f6bad40f4f246973afc0139ed91a2d32) is corrupt
  error: failed to push some refs to 'git@bitbucket.org:joemorano/app.git'
  </code></pre>
  
  <p>Could this have been caused by the computer shutting off before I could perform the first commit?</p>
  
  <p>Right before all this happened, I apparently corrupted the production version of my app by running <code>bundle install</code> as root on my server, and now everything on the server is messed up, but I don't see how that could affect the local version. I never did <code>git pull</code> or anything like that.</p>
  
  <p>Anyone encounter this error before?</p>