Topic: using "git commit -a"

After running that very common git command it takes me into a vi session to enter a message.  I know almost nothing about vi and was pretty lost for awhile but I found a command reference that helped.  Now I type "i", enter the commit message, hit escape and then type ":wq" to write the message and quit.

This works but seems like a hassle. The only reason I'm writing this post is that I've watched the Peepcode git screencast and I didn't see Geoffrey type any colon or "wq" or anything like that.  It seemed like he just typed a message, hit enter, and was back to the command prompt (which is how I would want it to work).

Am I missing something?

Re: using "git commit -a"

hmm I don't even remember how I set mine...
try:

git config --global core.editor "mate -w"

Re: using "git commit -a"

How about all on one line..

git commit -a -m "commit message here"

Re: using "git commit -a"

you can take a look at diff one more time while writing message smile

Re: using "git commit -a"

Eric_Jardas wrote:

hmm I don't even remember how I set mine...
try:

git config --global core.editor "mate -w"

I like that!

Re: using "git commit -a"

...

export EDITOR=vim

Re: using "git commit -a"

timmaah wrote:

How about all on one line..

git commit -a -m "commit message here"

that is your answer.  all commit's should have a message. it doesn't cost anything :-)