Recently I installed bash-it into my terminal. Now, when I try to execute git commit the terminal shows me this error:
/usr/bin/mate -w: /usr/bin/mate: No such file or directory
error: cannot run /usr/bin/mate -w: No such file or directory
error: There was a problem with the editor '/usr/bin/mate -w'.
Please supply the message using either -m or -F option.
Before bash-it, the commit command correctly opened vim.
Of course I've tried to change the core.editor in git to "vim" but it does not work anyway.
Could you please help me to solve this? I really like vim, it was super easy and fast...I don't want to use TextMate to edit the commit message.
PS: I'm using Mac OSX
EDITORorVISUALenvironment variables. One of them probably points to/usr/bin/mate.# Set my editor and git editor export EDITOR="/usr/bin/mate" export GIT_EDITOR='/usr/bin/mate -v'I edited my .bash_profile and deleted those to, set vim:# Set my editor and git editor export EDITOR="/usr/bin/vim" export GIT_EDITOR='/usr/bin/vim'