error: There was a problem with the editor ‘vi’. Please supply the message using either -m or -F option.

How do deal with
`error: There was a problem with the editor ‘vi’. Please supply the message using either -m or -F option.`
when writing git commit messages. Continue Reading error: There was a problem with the editor ‘vi’. Please supply the message using either -m or -F option.