How to fix error Another git process seems to be running in this repository

When you use Git, you see the error:

fatal: Unable to create 'D:/AppServ/www/speedy/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.


How to fix it? It’s simple: you just need to delete the file .git/index.lock

You can use this command:

rm .git/index.lock