Can somebody help me to solve this problem. I had made a previous post about this but I couldn't solve it through those answers. Please help:)
I have tried to run git fsck --full and I get :
Checking object directories: 100% (256/256), done. error: HEAD: invalid sha1 pointer 15044de63184bed22f9be9f48fd63a3a7652eea4 error: refs/heads/master does not point to a valid object! notice: No default references dangling blob f4ffb48ece75b45ec593146216a2ecae5a5b2194 dangling blob f37ffd41d80a2d07258d0b8fa7118d236d480fc0 dangling blob f1ff1fa538a538d9085e573f60ad11e8e7f5395e dangling blob f9ff6bdaf08fdbf9001ff44d2aa1a49092c20ad1 dangling blob f97f1a223ef3ca33f55d51ae25d98d3b5b2f9ece
git checkout master(or any other branch name) to get a valid HEAD ref for your working copy.git gc?git gcis not likely to fix anything, however it cleans up anything that Git thinks it might be finished with. This makes it much less likely that you will be able to reverse recent changes or find lost versions of files which you care about.git checkout masterwill replace your file tree withmasterbranch. However, if you have the above problem your recent commits may have been lost. Checking out master means that your only record of your local branch changes (the files themselves) is destroyed.