I recently upgraded my Ubuntu local server to 14.04. I don't know if it's related with upgrade or not, but things is there was no such problem before. The problem is,

![enter image description here](https://i.stack.imgur.com/6vwWQ.jpg)

Googled this problem, and found that, deleting this file will fix problem. Removed index.lock file. Got error:

```
error: bad signature
fatal: index file corrupt

```

Tried to `git reset`. After reset, tried to add, commit and push. First try gone well. It pushed commit without any problem. But second try, again same problem.

Tried to remove repo and clone again. Tried to `chown -R root:root /var/www`, to `chmod -R 777 .git/` of project. I even reinstalled OS ubuntu 14.04 server. Now same error message again. 

Any suggestions? What to do next?