Export GIT LOG into an Excel file

后端 未结 2 1435
忘掉有多难
忘掉有多难 2020-12-28 16:05

I have looked into the forum, but with no luck.

Requirement :

Run GIT LOG (format) command and write the results into an Excel File .

I have seen ex

2条回答
  •  滥情空心
    2020-12-28 16:32

    Git gives your the control on how to format the log output using pretty option. Check this out:

    git log --pretty=format:%h,%an,%ae,%s
    

    This prints the log in the format of (hash [abbreviated], author name, author email, subject).

    To see the full list of format options:

    git help log
    

    And scroll down until you see the list of format options.

    To redirect the output, use > redirection operator as follows:

    git log --pretty=format:%h,%an,%ae,%s > /path/to/file.csv
    

提交回复
热议问题