GIT can not create file

4

I do not have any more processes running.

  

fatal: Unable to create 'C: /Users/Mauricio/Documents/PROGRAMACION/Github/PostCSS/.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.

    
asked by Mauricio Brito 05.10.2016 в 02:49
source

2 answers

5

Sometimes some process remains when 2 git commands are executed at the same time.

  

fatal: Unable to create   'C: /Users/Mauricio/Documents/PROGRAMACION/Github/PostCSS/.git/index.lock':   File exists.

Delete the index.lock file contained in the .git/ directory

Remove the file by:

rm -f ./.git/index.lock
    
answered by 05.10.2016 / 05:44
source
2

Well just what it says there ...

Make sure you do not have any other git process (gui or cli). If the problem persists then manually delete the file PostCSS/.git/index.lock

    
answered by 05.10.2016 в 03:05