I am able to push fine, but I am suddenly getting this "fatal" message
$ git push
fatal: unable to connect to cache daemon: Bad file descriptor
Username for 'https://github.com':
Password for 'https://[email protected]':
fatal: unable to connect to cache daemon: Bad file descriptor
...
Why do I get this message all of the sudden? and what do I do?
I am not sure this might help, but between now and before this problem occurred
- I was working on some branch that is not master
- I changed my user.email in git config --global in the middle
- 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
- 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.
- Then I fixed it by modifying HEAD in config to "ref: refs/heads/master"
After coding and successfully committing the changes locally, when I tried to push it to the remote server, I got the following error message
$ git push
fatal: unable to connect to cache daemon: Bad file descriptor Username for 'https://github.com': Password for 'https://[email protected]': 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
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 :(