Git Commit Error terminal with the editor

Viewed 9674

I'm having some troubles with the command git commit. I did a git commit but unfortunately I've pressed Ctrl+Z instead of Ctrl+X to close, so now when I git commit again, it gives me this error:

error: editor died of signal 11
                           error: There was a problem with the editor 'editor'.   `Please, specific the message using option -m or -F. `

Actually I don't know how to fix this error. The operating system that I'm running is Ubuntu 15.10.

6 Answers

Most likely your EDITOR variable got deleted or reset. To avoid general problems now and in future, set this in your .zshrc or .bashrc

export EDITOR=$(which vim)

Related