I have this strange problem with using
vi as the editor for
git commit -a.
Normal flow is: I type
git commit -a,
vi appears, I enter my commit message, and then
:wq to save & exit from
This works fine. However, sometimes I make a typo and instead of
:wq I type
:Wq (because I use the shift for
:). Then, when I correct myself and type
git gives the following error:
error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option.
How can I fix this?