git status for a past commit?

Guillaume Chevalier picture Guillaume Chevalier · Jun 13, 2017 · Viewed 7.6k times · Source

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.

Answer

eftshift0 picture eftshift0 · Jun 13, 2017

git show --name-status <commit>