osx - OS X Yosemite Git Editor Not Working Correctly -


i'm having odd problem git , editor. i've been on stack overflow , have been unable find similar problem.

when executing git commit i'm getting following error:

-w: -w: command not found error: there problem editor ' -w'. please supply message using either -m or -f option. 

i've tried emacs, vim, , atom, setting them in global .gitconfig file follows:

editor = /usr/bin/emacs

i've set editor in .bash_profile follows:

export editor=emacs  

i receive same error using editor choose.

all editors work correctly otherwise, git.

i'd appreciate solving problem.

you may check editor variables:

git config --global core.editor emacs 

or:

git config --global --edit 

you should configure file follow:

[core]     editor = emacs 

check local (current repository) , system configurations:

git config --local --edit git config --system --edit 

you have bad -w editor somewhere.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -