The shortest possible output from git log containing author and date

前端 未结 13 1729
我在风中等你
我在风中等你 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:58

    git log --pretty=format:"%H %an %ad"
    

    use --date= to set a date format

    git log --pretty=format:"%H %an %ad" --date=short
    

提交回复
热议问题