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. code example
Example: Another git process seems to be running in this repository
rm -f .git/index.lock