$ 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文件?
答案 0 :(得分:1)
您可以使用“ How to list only the file names that changed between two commits?”中的命令之一
git diff --name-only --diff-filter=M @~ > list.csv