我有一个 sh 脚本,用来组合一些文件并将它们提交到一个 git 仓库。如何在我的提交消息中动态添加日期?
我的 .sh 文件大致如下:
我的 .sh 文件大致如下:
// do things to files...
git add -u;
git commit -m 'generated files on <date here?>';
git push origin master;
git log
中已经包含了日期信息,是否在消息中重复表述真的有必要? - nneonneo