On 2011.12.07 09:50:24 +0530, Viresh Kumar wrote: > > Thanks guys. This whole session was new to me. > > On 12/7/2011 7:58 AM, Vijay Lakshminarayanan wrote: > > Junio C Hamano <gitster@xxxxxxxxx> writes: > > > >> > Vijay Lakshminarayanan <laksvij@xxxxxxxxx> writes: > >> > > >>> >> I've found > >>> >> > >>> >> $ GIT_EDITOR=cat git commit --amend > >>> >> > >>> >> useful. > >> > > >> > Are you sure it is a cat? > > Yes. > > This didn't worked for me. Got following error: > > cat: unrecognized option `--amend' > Try `cat --help' for more information. > error: There was a problem with the editor 'cat git commit --amend'. > Please supply the message using either -m or -F option. > Could not commit staged changes. That looks like you did something like: export GIT_EDITOR="cat git commit --amend" But the original command was: GIT_EDITOR=cat git commit --amend Notice that there are no quotes and no escaped spaces. This is a shortcut to set GIT_EDITOR to "cat" for just this one command (git commit --amend). If you want to set the editor in the environment, use just "export GIT_EDITOR=cat" or something like that. HTH Björn -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html