Print release note from git commit logs

Write meaningful messages when you commit, and then it is easy to produce a release note based on these messages later.

1) Print by date range

$ git log --since="1 day ago" --pretty=format:"%h - %s (%cd)" --date=short

2) Print by revision range

$ git log SHA_FROM..SHA_TO --pretty=format:"%h - %s (%cd)" --date=short

 

Sample outputs

fea7b1a - update csp (2024-06-25)
c24743b - fix logout (2024-06-24)

AI Summary
gpt-4o-2024-05-13 2024-07-16 00:40:41
This blog post discusses generating release notes from git commit logs. It provides commands to print commit messages based on date range or revision range, emphasizing the importance of writing meaningful commit messages for this purpose.
Chrome On-device AI 2024-07-20 05:52:35

Share Article