Create a git today Shortcut to List Today’s Commit Messages in Markdown
When you’re writing daily updates, preparing a changelog, filling out a standup report, or summarizing your work at the end of the day, you often need a quick list of the commits you made today.
You can get that information from git log, but typing a full date range every time is repetitive and error-prone:
|
|
This works, but it has one obvious problem: you have to update the dates every day.
A cleaner solution is to use Git’s relative date syntax and then wrap the command in a Git alias.
The Problem: Listing Only Today’s Git Commit Messages
Suppose you want to list the commit messages from today only.
You might start with a command like this:
|
|
This tells Git:
- show commits since
2026-06-21 00:00 - show commits until
2026-06-22 00:00 - print only the commit subject using
%s
The output might look like this:
|
|
That’s useful, but the hard-coded dates make it inconvenient. If you run this tomorrow, you need to edit both dates.
For a command you might use every day, that’s not ideal.
The Better Version: Use --since=midnight
Git understands relative dates, including midnight.
Instead of entering today’s date manually, you can write:
|
|
This means: show commits since the start of the current day.
So instead of maintaining a command like this:
|
|
You can use this:
|
|
Much cleaner.
Format the Output as a Markdown Bulleted List
If you want to paste the output into a Markdown document, changelog, GitHub issue, pull request, Slack update, or daily notes file, you can prefix each commit subject with - .
Use this:
|
|
Example output:
|
|
Now the result is already formatted as a Markdown bulleted list.
That means you can copy and paste it directly into places like:
- a daily standup update
- a pull request description
- a changelog draft
- a project management comment
- a developer journal
- release notes
- team status reports
The Elegant Solution: Create a git today Alias

The final improvement is to turn the command into a shortcut.
Git supports aliases through git config. You can define a custom command called today like this:
|
|
After running that once, you can use:
|
|
And Git will run:
|
|
The output will look like this:
|
|
That’s the elegant solution: a short, readable command that produces copy-paste-ready Markdown.
Optional: Include the Short Commit Hash
Sometimes a commit message alone is enough. But if you want to include the short commit hash for traceability, define the alias like this instead:
|
|
Then:
|
|
Outputs something like:
|
|
This is useful when you want the summary to stay readable while still allowing people to identify the exact commits.
Check the Alias
To verify that the alias was created correctly, run:
|
|
You should see something like:
|
|
Or, if you included hashes:
|
|
Remove the Alias
If you ever want to remove it, run:
|
|
After that, git today will no longer be available.
Final Command
For the cleanest version, use this:
|
|
Then your daily command becomes:
|
|
Conclusion
Hard-coding dates in git log works, but it is not a great daily workflow.
By replacing the date range with --since=midnight, formatting the output with --pretty=format:'- %s', and saving the command as a Git alias, you get a simple and reusable shortcut:
|
|
It is short, memorable, and produces Markdown-ready output that you can paste directly into daily reports, changelogs, pull requests, or team updates.