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

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.

Leave a Comment