How to add previous commit messages and authors to you Git commit template?

I find having the context of the previous commit messages helpful when writing a new commit message. Especially when using Scoped Commits , it helps seeing scoped used in the past. Git comes with a customizable message template, but it is static. What is needed is a wrapper around git commit to fetch the latest git commit messages, and to prepend this text to the current git message file. To wrap…