I have a problem with git on Windows Azure. Git status shows - \"fatal: bad object HEAD\" and I tried running:
git fsck --full git gc
But
Make a copy of your git dir in your local host and run git init there once again. Push the project to a brand new reprository.
git init