Git |提交到Git后更改导出文件名

时间:2019-02-06 17:34:25

标签: git

$ git log --name-status HEAD^..HEAD
commit 2ca5c13aba662df60ace9945b5110b7589f0aad2 (HEAD -> devops, origin/devops)
Author: Sample Name <samplename@asdfgt88p12.asdfe.net>
Date:   Wed Feb 6 17:18:30 2019 +0000

    removing unnecessary lines

M       dev/Jenkinsfile1
M       dev/JenkinsfileFind
M       dev/JenkinsfileCICD-DEV
M       dev/JenkinsfileIaC

git log --name-status HEAD ^ .. HEAD 命令列出最后提交的文件。 如何将所有这些文件名和文件名路径导出到.csv文件?

1 个答案:

答案 0 :(得分:1)

您可以使用“ How to list only the file names that changed between two commits?”中的命令之一

git diff --name-only --diff-filter=M @~ > list.csv