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?

18 s
18

If you just want, say, a head line and a content line, you can use:

git commit -m "My head line" -m "My content line."

Note that this creates separate paragraphs – not lines. So there will be a blank line between each two -m lines, e.g.:

My head line

My content line.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *