title: unable to connect to cache daemon?
body: <p>I am able to push fine, but I am suddenly getting this "fatal" message</p>
  
  <pre><code>$ git push
  fatal: unable to connect to cache daemon: Bad file descriptor
  Username for 'https://github.com':
  Password for 'https://myid@github.com':
  fatal: unable to connect to cache daemon: Bad file descriptor
  ...
  </code></pre>
  
  <p>Why do I get this message all of the sudden? and what do I do?</p>
  
  <p>I am not sure this might help, but between now and before this problem occurred</p>
  
  <ul>
  <li>I was working on some branch that is not master</li>
  <li>I changed my user.email in git config --global in the middle</li>
  <li>my computer crashed big time because I connected the wrong project connector(that is not for the computer) to it, and I believe somehow some file got corrupted</li>
  <li>After that occurred, when I tried to make a new commit,I was getting the following message : fatal: Failed to resolve HEAD as a valid ref.</li>
  <li>Then I fixed it by modifying HEAD in config to "ref: refs/heads/master"</li>
  <li><p>After coding and successfully committing the changes locally,  when I tried to push it to the remote server, I got the following error message</p>
  
  <p>$ git push</p>
  
  <p>fatal: unable to connect to cache daemon: Bad file descriptor
  Username for 'https://github.com':
  Password for 'https://myid0@github.com':
  fatal: unable to connect to cache daemon: Bad file descriptor
  fatal: loose object 8ce710b1c78658e066cd2309b12b7766d1be4920 (stored in     .git/objects/8c/e710b1c78658e066cd2309b12b7766d1be4920) is corrupt
  fatal: The remote end hung up unexpectedly
  fatal: The remote end hung up unexpectedly
  fatal: write error: Bad file descriptor</p></li>
  <li><p>So I backed up all the changes I made, deleted the repo, clone the repo from the github, and made some changes with the backup files, add, commit, and pushed the changes fine...but still that message does not go away :( </p></li>
  </ul>