How to commit with timestamp in message

In PowerShell,

git commit -am "$(Get-Date -Format 'MM-dd HH:mm') Fix bug"

In bash or zsh,

git commit -am "$(date '+%m-%d %H:%M') 修复bug"

Related

Created 2026-01-02T20:54:36+08:00 · Edit