使用编辑器的Git Commit Error终端

Luk*_*ith 4 git git-commit

我在命令方面遇到了一些麻烦git commit.我做了一个,git commit但不幸的是我按下Ctrl+Z而不是Ctrl+X关闭,所以现在当我git commit再次,它给了我这个错误:

error: editor died of signal 11
                           error: There was a problem with the editor 'editor'.   `Please, specific the message using option -m or -F. `
Run Code Online (Sandbox Code Playgroud)

其实我不知道如何解决这个错误.我正在运行的操作系统是Ubuntu 15.10.

Nis*_*han 18

  1. 转到.git /文件夹
  2. 删除文件.COMMIT_EDITMSG.swp


Joh*_*orn 2

看来您正在使用 nano 编辑器。当你击中你时Ctrl+Z,你暂停了编辑,似乎发生了一些事情

现在 git 告诉你你的编辑器坏了。fg尝试通过输入或终止进程来唤醒 Nano killall nano