假设我已为某个项目进行了一系列提交,因此当我18.3
时,它会生成以下内容
git log --oneline
接下来,我希望在其中一个提交中看到已添加,修改和删除的文件。我试过了
e61c4fb Wrote the special problem review of related literature.
eb584ba Wrote the special problem objectives.
8d2dd52 Added more research papers
72a2d27 Fixed the bug during the removal of parent chromosomes in ga_wknn and saga_wknn
d7467df Added as the k in KNN as a parameter in the constructor of each application.
2293f43 Added a simulation result.
bdfcf41 Done with adding Introduction Comments
但它也向我展示了每个文件的修改内容,这使整个事情变得很长。我只想查看已更改的列表文件,并且没有关联的内容。我如何实现这一目标?
答案 0 :(得分:2)
git show --name-only commit_hash
答案 1 :(得分:0)
只清楚地列出修改过的文件,没有多余的信息:
git diff-tree --no-commit-id --name-only -r commit_id