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?
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.