I want to export the log of all commits in a repo to a text file, is there any way to do this?
You may use the > symbol send the output to a file. For example:
>
git log > commits.txt