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

后端 未结 10 1556
醉酒成梦
醉酒成梦 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:31

    In my case i found this was helpful

    git log --after="2020-3-20" --pretty=format:'Author : %an %nDate/Time : %aD%nCommit : %s' | paste > log.txt

    This will generate :

    Author : your name

    Date/Time : Commit Date time

    Commit : Commit message

提交回复
热议问题