git remove index.lock file code example
Example: remove index.lock git
# On linux/unix/gitbash/cygwin, try
sudo rm -f ./.git/index.lock
# On Windows Command Prompt, try:
del .git\index.lock
# On linux/unix/gitbash/cygwin, try
sudo rm -f ./.git/index.lock
# On Windows Command Prompt, try:
del .git\index.lock