Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Commit Error terminal with the editor

Tags:

git

git-commit

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.

like image 315
Luke Smith Avatar asked Mar 15 '16 13:03

Luke Smith


1 Answers

  1. Go to .git/ folder
  2. Delete the file .COMMIT_EDITMSG.swp
like image 74
Nishant Chauhan Avatar answered Sep 20 '22 15:09

Nishant Chauhan