Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git rebase could not execute editor

I'm attempting to squash some git commits using rebase. When I run 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've attempted to change the git config editor variable but I haven't gotten it to work. Right now my config file shows the following:

[core]
    editor = /usr/bin/vim

I'm running Ubuntu 13.04

Any ideas?

like image 853
warder57 Avatar asked Jun 28 '13 15:06

warder57


2 Answers

Do something like that

$ git config --global core.editor emacs

where emacs paste name of your editor

like image 110
j-maks Avatar answered Nov 06 '22 15:11

j-maks


Check to make sure GIT_EDITOR is not set in your environment. It takes precedence over core.editor.

like image 35
John Szakmeister Avatar answered Nov 06 '22 14:11

John Szakmeister