Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: code example
Example: Another git process seems to be running in this repository
rm -f .git/index.lock
rm -f .git/index.lock