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

后端 未结 10 1557
醉酒成梦
醉酒成梦 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条回答
  •  Happy的楠姐
    2020-12-07 12:41

    This is what worked for me with Git Bash on Windows 7:

    git log > /C/Users//Desktop/git-log.txt

    replace with your user name.

    The file will be exported to your Desktop from where you can read it.

    Good Luck...

提交回复
热议问题