Error: Another git process seems to be running in this repository

2

I have a repository with several files, including html, javascript, css and others, and today I had this error, I already researched a lot of other solutions so far.

  

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, the git process may have crashed in this repository earlier: remove the file manually to continue.

    
asked by anonymous 26.12.2017 / 20:39

2 answers

3

You must try to delete the index.lock file in your .git directory.

This problem occurs every time you run two git commands simultaneously, perhaps one from the command prompt and one from the IDE.

    
26.12.2017 / 20:44
1

Try to see if there is a git process running on windows task manager. If there is, kill the process and delete the index.lock in the .git folder

Usually solves the problem;)

    
22.01.2018 / 17:15