[英]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.