Export list of all commit details in VSTS / Azure DevOps into file?

久未见 提交于 2019-12-04 21:07:40

Thanks to @Philippe for guiding to the answer:

  • launch MS-DOS command line in the .git subdirectory for the solution
  • issue command: git log --pretty=format:%h,%an,%aD,%s > ./GitLog.csv
  • wait for GitLog.csv file to appear and open in spreadsheet program

Format option meanings:

  • %h = commit hash
  • %an = Author Name
  • %aD = commit date
  • %s = subject (comment of commit)

See here for more: https://git-scm.com/docs/pretty-formats and https://devhints.io/git-log-format

This solution doesn't give number of files or size of each commit, but it's a strong start.

(Philippe if you can move your comment in a proper answer rather, I'll give you the credit for providing the answer)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!