How do I export a git log to a text file?

后端 未结 10 1555
醉酒成梦
醉酒成梦 2020-12-07 12:11

I want to export the log of all commits in a repo to a text file, is there any way to do this?

10条回答
  •  遥遥无期
    2020-12-07 12:46

    git log --before="2019-2-23" --pretty=format:'"%h","%an","%ae","%aD","%s",' --shortstat --no-merges | paste - - - > log.txt
    

提交回复
热议问题