When I try to run any git command, I get the following
$ git add .
fatal: Unable to create 'J:/Project/geospatial/U5M_africa/.git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
I remove the file without any errors:
$ rm -f .git/index.lock
I also try to remove this manually in windows. The file disappears, but re-appears immediately. If I try any git commands I still get the same fatal error.
What is causing the file to instantly re-appear? How can I get rid of it for good and get on with my life?