Reputation: 10918
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
.
Upvotes: 24
Views: 14049
Reputation: 10918
I found:
git show --stat --oneline b8351c4
Where b8351c4
is the regarded commit.
Upvotes: 15
Reputation: 311528
git status
is the wrong command here. If you want to see what a previous commit did you should use git show <commit>
.
Upvotes: 6