The shortest possible output from git log containing author and date

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

    All aforementioned suggestions use %s placeholder for subject. I'll recommend to use %B because %s formatting preserves new lines and multiple lines commit message appears squashed.

    git log --pretty=format:"%h%x09%an%x09%ai%x09%B"
    

提交回复
热议问题