【发布时间】:2021-09-28 20:33:29
【问题描述】:
我的问题与此非常相似 - May I list the files of the current commit?
问题陈述:我正在尝试获取“master”分支中上次提交中新/更改的所有文件的列表。
我尝试了什么: 从我的 .git 目录所在的目录中运行这些命令用于项目。 git show --name-only 和 git show --name-only master 但未显示预期结果。
它告诉我这个:
Merge: f733602 4d98b76
Author: Some Name <some.name@company.com>
Date: Thu Jul 1 11:34:49 2020 -0700
Merge pull request #28 from secret/my_rqd_files
我期待的是 - 它应该显示所有文件的列表及其在 repo 中的完整路径。
问题:我应该怎么做或我做错了什么?
【问题讨论】:
-
它显示了什么?你在期待什么?
-
更新问题
-
@AjayKumar :如果从您的
master分支运行:git log --graph --oneline --name-status --first-parent,您是否看到您期望分布在多个提交中的 30 多个文件的列表?
标签: git github git-commit