Git rebase cannot execute editor

I am trying to deflate some git using rebase. When I ran this:

git rebase -i HEAD 

I get this error:

 /usr/lib/git-core/git-rebase: 1: eval: /usr/bin/mate: not found Could not execute editor 

I tried changing the variable of the git configuration editor, but I did not get the job. Right now my configuration file shows the following:

 [core] editor = /usr/bin/vim 

I am running Ubuntu 13.04

Any ideas?

+6
source share
2 answers

Make sure GIT_EDITOR not installed in your environment. It takes precedence over core.editor.

+4
source

Do something like that

 $ git config --global core.editor emacs 

where emacs paste your editor name

+12
source

Source: https://habr.com/ru/post/948330/


All Articles