Reputation: 21
First I get this error when I try to make any changes in git:
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.
So I run rm .git/index.lock
, and I get another error:
rm: cannot remove '.git/index.lock': No such file or directory
Upvotes: 1
Views: 616
Reputation: 21
It turns out that there were two files called COMMIT_EDITMSG.swp and index.lock that needed to be removed. There was also some .vs file that apparently had been created by Visual Studio.
Upvotes: 1