how to do a git status
to view changed files in a past commit?
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
.
git show --name-status <commit>
git status
is the wrong command here. If you want to see what a previous commit did you should use git show <commit>
.
I found:
git show --stat --oneline b8351c4
Where b8351c4
is the regarded commit.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.