How to do a git commit with a subject line and message body? : <p>I want to improve the way I do git commits and I've been reading around the web. I followed the site here <a href="http://chris.beams.io/posts/git-commit/" rel="noreferrer">http://chris.beams.io/posts/git-commit/</a> and this lead me to <a href="https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration" rel="noreferrer">https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration</a> where I can set my default editor, but I still don't understand how I edit the subject line separately from the body of the commit.</p>

<p>I'm used to doing:</p>

<pre><code>git commit -am "message here"
</code></pre>

<p>but as I understand it for longer commits, I should use an editor like vim (on my  mac)</p>
