Git Enclose a terminal with an editor

I'm having problems with the team git commit. I did git commit, but unfortunately I pressed Ctrl+Zinstead Ctrl+Xto close, so now that I am git commitagain, 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 I am running is Ubuntu 15.10.

+4
source share
6 answers

It seems you are using the nano editor. When you click Ctrl+Z, you paused the editor for something that looks like .

Now git reports that your editor is corrupt. Try waking nano by entering fgor kill the process with killall nano.

+1
  • .git/
  • .COMMIT_EDITMSG.swp
+14

, git add <files> git rm <files>, git commit -m "<commit message>" .

+2

:

git commit -a -m "message"

: -

git commit -m "message"
0

, git git config --global core.editor "vim"

Vim. .

0

EDITOR reset. , .zshrc .bashrc

export EDITOR=$(which vim)

0

All Articles