Git log
支持使用相对日期
git log --date=relative
如何使SourceTree使用这种相对日期格式,例如* user Desc (11分钟前) 96cb501
您可以检查 SourceTree 是否遵循本地 git config
:
cd /your/repo
git config log.date relative
查看SourceTree是否使用存储库配置中指定的格式。
如果没有,您需要在Mac版SourceTree或Windows版SourceTree中输入错误报告存储库。
git config --global log.date relative
,但是SourceTree仍然显示实际日期。 - Brent Faust