git log -10 HEAD --date=iso-local \
|grep -v -e "^$" -e "^Author" -e "^commit" \
|sed "s/^Date: /================================================\n/g" > git_ver.txt
显示如下:
================================================ 2023-12-11 10:02:30 +0800 php8.2 fix ================================================ 2023-12-10 00:07:50 +0800 php8.2下运行错误修复 ================================================ 2023-12-07 10:17:21 +0800 调整数据库索引 ================================================