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 delete the file without errors:
$ rm -f .git/index.lock
I am also trying to remove this manually in windows. The file disappears, but appears again. If I try any git commands, I still get the same fatal error.
What causes an immediate redisplay of a file? How can I get rid of him forever and continue my life?
source
share