I am having a constant issue with one of my git repos. I keep getting the following error:
fatal: Unable to create 'v:/path/to/files/.git/index.lock': File exists.
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.
I have tried: rm -f ./.git/index.lock as per another thread on stackoverflow but I get this error each time: rm: cannot unlink `./.git/index.lock': Permission denied
When I close down aptana (I am using git in the terminal) I cannot delete the file still.
Any ideas how to get around this?
Another thing to note is this git repo is very slow when I do occasionally get to commit within it (it allows me every 10 tries or so)
Thanks