Credit: there's a clear explanation at https://www.git-tower.com/learn/git/faq/undo-last-commit
==Good and Consistent commit messages==
You hopefully know what constitutes a [https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html good commit message]. What about consistency? Say you need to add standard language to every commit message like
<tt>"This work was performed for NASA GRC-ATF by WikiWorks per NASA Contract NNC15BA02B."</tt>
To consistently format your commit messages, use the configuration parameter <code>commit.template</code> which you can do with <code>git config</code>, or else in your ~/.gitconfig file.
https://thoughtbot.com/blog/5-useful-tips-for-a-better-commit-message
The GitLab project uses the concept of commit templates<ref>https://docs.gitlab.com/ee/user/project/merge_requests/commit_templates.html</ref>
==Git Branch==