git: Another git process seems to be running in this repository, e.g. an editor opened by

created at 05-29-2022 views: 16

problem

fatal: Unable to create 'D:/javapub/JavaPub-Web/.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.

reason

Obviously, the file is locked, delete the file .git/index.lock

solution

  1. delete file .git/index.lock
  2. resubmit

solution

created at:05-29-2022
edited at: 05-29-2022: