Trying to commit to a Git repo with Sourcetree fails as follows:
git -c core.quotepath=false commit -q -m "Notes fri" -a
error: unable to create temporary sha1 filename .git/objects/d8: File exists
error: Error building trees
Completed with errors, see above
It is possible to commit without problems with command line Git.
With some googling I found the following commands to try but they didn't help:
git fsck
git prune
git repack
git fsck
I also tried the following, no help either
git gc