Abder-Rahman A. wrote:
I used this command to specify the text editor: $ git config --global
core.editor “mate -w”
How can I remove this configuration as I’m getting this error: error:
cannot run mate -w: No such file or directory
Or, how can I fix this error instead?
I use the mate command for the editor for lots of things. However, I did
not tell Git to use it specifically in it’s configuration. Instead I set
the EDITOR environment variable in ~/.profile like so:
export EDITOR=‘mate --wait’
Git will respect the EDITOR variable.
To remove the configuration from Git you can remove that configuration
from your ~/.gitconfig file.
But, before doing any of the above make sure the mate command line tool
is enabled. You can do that from TextMate
Help ->> Terminal Usage… ->> Create Link