---
title: Print release note from git commit logs
url: https://calvin.my/posts/print-release-note-from-git-commit-logs
published: 2024-06-25
updated: 2026-09-17
category: Development
tags:
- git
- Release
summary: The post explains how clear Git commit messages can serve as the basis for release notes. It outlines generating a concise list of commits either from a recent date range or between two revisions, with each entry showing a short identifier, message, and date. This approach helps teams quickly assemble release summaries from existing project history, emphasizing that useful output depends on writing meaningful commit descriptions.
---

# 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

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

2. Print by revision range

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

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