I was doing a commit in a local repository which was taking longer than I was expecting, I realized that I was committing a recently added large file so I decided to cancel by doing Ctrl-C.
I proceeded to add the large file to .gitignore and tried doing git add
and git commit
again.
The first time I tried I got an error indicating that index.lock existed, so I removed it manually. After git add
I tried git commit
but now I get the fatal: error when closing sha1 file: Permission denied
Is there something else I need to manually remove before being able to perform commits again?