简体   繁体   English

过去提交的git状态?

[英]git status for a past commit?

how to do a git status to view changed files in a past commit? 如何做一个git status来查看过去提交中的已更改文件?

NOTE: this question might have already been asked, but phrased much differently. 注意:这个问题可能已经被问过了,但措辞却截然不同。 however, I am astounded to see that searching for the following expression on Google yields no useful results: git status for past commit . 但是,我惊讶地发现在Google上搜索以下表达式没有产生任何有用的结果: git status for past commit

git show --name-status <commit>

git status is the wrong command here. git status是错误的命令。 If you want to see what a previous commit did you should use git show <commit> . 如果你想看看之前的提交你应该使用git show <commit>

I found: 我发现:

git show --stat --oneline b8351c4

Where b8351c4 is the regarded commit. 其中b8351c4是被视为提交的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM