Git index.lock File exists when I try to commit, but I cannot delete the file June 17, 2023 by Tarik On Linux, Unix, Git Bash, or Cygwin, try: rm -f .git/index.lock On Windows Command Prompt, try: del .git\index.lock