Git: A lock file already exists in the repository, which blocks this operation from completing

YURII DE. - Nov 18 '23 - - Dev Community

Go to the project folder and find the .git folder (hidden), then delete the index.lock file.
Done.
Image description

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .