[Solved] Git Error: “Another git process seems to be running in this repository…”

Git shows: Another git process seems to be running in this repository, egan 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.

 

Cause Analysis:

According to what we have learned, windows has a resource locking mechanism for the synchronization and mutual exclusion management of processes. It is guessed that there must be a process that locked a certain resource, but because the process suddenly crashed, there was no time to unlock it, causing other processes to be unable to access it. This is because Git encountered a crash during use, and some of the locked resources were not released.

solution:

Go to the .git file under the project folder (show hidden folders or rm .git/index.lock) and delete the index.lock file.

Similar Posts: