I am trying to learn how to write a git commit message on a linux terminal.
I am presented with the following options after I write my commit message.
Which is the first one I am supposed to choose?
> ^G Get Help ^O Write Out ^W Where Is ^K Cut Text ^J Justify ^C Cur Pos
^X Exit ^R Read File ^\ Replace ^U Uncut Text^T To Spell ^_ Go To Line
If I hit "write out" I get another list of options that I don't understand.
File Name to Write:$T_EDITMSG
^G Get Help M-D DOS Format M-A Append M-B Backup File
^C Cancel M-M Mac Format M-P Prepend ^T To Files
-m(or-am) option and type your message between quotes and press[Enter]and you are done. (e.g.git commit -m 'Your commit message here.'then just press[Enter]) See both good answers below for configuring the default editor if you go that route. (learn/usevim- you can lean the basics in 5 minutes and it will be on just about every Linux system you touch -- well worth the time)