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

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

    You'll just need to disable the pager.

    git --no-pager log > log.txt
    

    If you want to format it to look nicer, you can use parameters of git log.

提交回复
热议问题