Tag Archives: Programmer skills and personality

There was a problem with the editor ‘vi’


There was a problem with the editor ‘vi’


submitted the code through git commit-m 'modify message' in the project. It was found that the modify message submitted was not accurate, so I wanted to modify it. Use the git commit -amend command to modify modify message. After editing the message in vim, the w+q exits with an error and the 0 message1 fails to save,
2
The error message is:






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


Solutions:







git config --global core.editor /usr/bin/vim

Amend git commit --amend is OK this time.
Reference:

http://tooky.co.uk/there-was-a-problem-with-the-editor-vi-git-on-mac-os-x/