SourceTree(Git)相对日期格式?

3

Git log 支持使用相对日期

git log --date=relative

如何使SourceTree使用这种相对日期格式,例如* user Desc (11分钟前) 96cb501

1个回答

1

您可以检查 SourceTree 是否遵循本地 git config

cd /your/repo
git config log.date relative

查看SourceTree是否使用存储库配置中指定的格式。

如果没有,您需要在Mac版SourceTreeWindows版SourceTree中输入错误报告存储库。


1
好主意。我按照你的建议尝试了一下,但是没有成功。我还尝试了全局设置日期格式 git config --global log.date relative,但是SourceTree仍然显示实际日期。 - Brent Faust

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接