I am using Git from the command line and am trying to add a line break to the commit message (using git commit -m ""
) without going into Vim.
Is this possible?
I am using Git from the command line and am trying to add a line break to the commit message (using git commit -m ""
) without going into Vim.
Is this possible?
Doing something like
doesn't work, but something like
works, but it's not very pretty. You set up a
git-commitlb
command in yourPATH
which does something like this:And use it like this:
Word of warning, I have a feeling that the general convention is to have a summary line as the first line, and then two line breaks, and then an extended message in the commit message, so doing something like this would break that convention. You could of course do:
There is no need complicating the stuff. After the
-m "text...
the next line is gotten by pressing Enter. When Enter is pressed>
appears. When you are done, just put"
and press Enter: