Failed to create '/git/index.lock': File exists but it does not

I get this message when I try to reboot interactively using the source tree.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

fatal: cannot create 'X: /sources/project/.git/index.lock': File exists.

The problem is that X: /sources/project/.git/index.lock does not exist

All other solutions on SO did not work for me, as everyone says to delete this file.

+4
source share
2 answers

I am on a Mac and have come across the same issue. When git rebase -i masterI started, I received an error message:

fatal: '///.git/index.lock': .

index.lock .git/. index ( ). .

, , : touch .git/index.lock

, ( ). : rm .git/index.lock

. rebase ( , ), , rebase: git rebase --continue

, - , .

+3

, , :

  • .git/index.lock Windows.
  • ( git bash, , )

(git rebase --continue, ). , . ...

0

All Articles