* Problem Creating Commit Messages
@ 2009-03-27 4:44 bggy
2009-03-27 5:18 ` Geoffrey Lee
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bggy @ 2009-03-27 4:44 UTC (permalink / raw)
To: git
Hello, I'm new to git and I haven't been able to create commit messages in
either vim or textmate(changed core.editor to mate). I can create commit
messages when I use the -m option, but I like creating multiple-line
messages and it's easier to do it with a fresh line-break in the terminal.
Using textmate I saved and closed the textmate file that pops up after $git
commit -a, but git responds that the commit was terminated due to an empty
message.
I am not familiar with VIM, can change modes, but none of the key combos I
tried worked.
Thank you!,
John
--
View this message in context: http://www.nabble.com/Problem-Creating-Commit-Messages-tp22735968p22735968.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Problem Creating Commit Messages
2009-03-27 4:44 Problem Creating Commit Messages bggy
@ 2009-03-27 5:18 ` Geoffrey Lee
2009-03-27 6:08 ` John Tapsell
2009-03-27 7:56 ` Jonas Flodén
2 siblings, 0 replies; 4+ messages in thread
From: Geoffrey Lee @ 2009-03-27 5:18 UTC (permalink / raw)
To: git
On Thu, Mar 26, 2009 at 9:44 PM, bggy <balishaggy@yahoo.com> wrote:
> I am not familiar with VIM, can change modes, but none of the key combos I
> tried worked.
1) Press "i" to enter Insert mode
2) Type in some text on the first line
3) Press "esc" to leave Insert mode
4) Press Shift + ; (or in other words, the colon character)
5) Enter the characters "wq" without the quotes, and press Enter. ("w"
for write, "q" for quit)
-Geoffrey Lee
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Problem Creating Commit Messages
2009-03-27 4:44 Problem Creating Commit Messages bggy
2009-03-27 5:18 ` Geoffrey Lee
@ 2009-03-27 6:08 ` John Tapsell
2009-03-27 7:56 ` Jonas Flodén
2 siblings, 0 replies; 4+ messages in thread
From: John Tapsell @ 2009-03-27 6:08 UTC (permalink / raw)
To: bggy; +Cc: git
2009/3/27 bggy <balishaggy@yahoo.com>:
>
> Hello, I'm new to git and I haven't been able to create commit messages in
> either vim or textmate(changed core.editor to mate). I can create commit
> messages when I use the -m option, but I like creating multiple-line
> messages and it's easier to do it with a fresh line-break in the terminal.
You could use a simple text editor like "joe".
> Using textmate I saved and closed the textmate file that pops up after $git
> commit -a, but git responds that the commit was terminated due to an empty
> message.
Sometimes graphical editors return on the command line before they
actually quit. This might be what is happening here. If so, you
could file a bug against textmate.
John
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem Creating Commit Messages
2009-03-27 4:44 Problem Creating Commit Messages bggy
2009-03-27 5:18 ` Geoffrey Lee
2009-03-27 6:08 ` John Tapsell
@ 2009-03-27 7:56 ` Jonas Flodén
2 siblings, 0 replies; 4+ messages in thread
From: Jonas Flodén @ 2009-03-27 7:56 UTC (permalink / raw)
To: git
bggy wrote:
> Hello, I'm new to git and I haven't been able to create commit messages in
> either vim or textmate(changed core.editor to mate). I can create commit
> messages when I use the -m option, but I like creating multiple-line
> messages and it's easier to do it with a fresh line-break in the terminal.
>
> Using textmate I saved and closed the textmate file that pops up after $git
> commit -a, but git responds that the commit was terminated due to an empty
> message.
>
Hi there,
For TextMate to work with Git you need to add the option -w to "mate"
which will specify that it should wait for the file to be closed.
So set EDITOR="mate -w" and it should work with TextMate.
With regards,
Jonas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-27 7:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-27 4:44 Problem Creating Commit Messages bggy
2009-03-27 5:18 ` Geoffrey Lee
2009-03-27 6:08 ` John Tapsell
2009-03-27 7:56 ` Jonas Flodén
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).