更新时间:2023-02-07 15:14:39
这是在 2015 年,但为了未来的搜索者,现在可以使用以下方法生成华丽的日志:
This was in 2015, but for the sake of future searchers, it's now possible to generate gorgeous logs with:
git log --oneline --decorate
或者,如果您希望它更漂亮(带有终端颜色):
Or, if you want it even prettier (with color for the terminal):
git log --oneline --decorate --color
将输出传送到 ChangeLog 是我目前在所有项目中使用的方法,这简直太棒了.
Piping that output to ChangeLog is what I currently use in all my projects, and it's simply amazing.