Every now and then, as I am dutifully crafting a nice, descriptive commit message, I get an error:
".git/COMMIT_EDITMSG" 81L, 2108C written
error: There was a problem with the editor 'vim'.
Please supply the message using either -m or -F option.
Note this is usually after :wq
. I check the .git/COMMIT_EDITMSG
file and it has no changes in it. Is there another place that git saves this message to so I might recover it and try committing again? Do people have experience with this problem and know why it might be happening to me? I have no issues writing to other files and permissions seem to be in order.