The shortest possible output from git log containing author and date

前端 未结 13 1697
我在风中等你
我在风中等你 2020-12-02 03:12

How can I show a git log output with (at least) this information:

* author
* commit date
* change

I want it compressed to one line per log

13条回答
  •  天命终不由人
    2020-12-02 03:45

    Feel free to use this one:

    git log --pretty="%C(Yellow)%h  %C(reset)%ad (%C(Green)%cr%C(reset))%x09 %C(Cyan)%an: %C(reset)%s" -7
    

    Note the -7 at the end, to show only the last 7 entries.

    Look:

提交回复
热议问题