Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git status for a past commit?

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.

like image 835
Guillaume Chevalier Avatar asked Jun 13 '17 17:06

Guillaume Chevalier


People also ask

How can I see previous commit changes?

If you want to see what's happened recently in your project, you can use git log . This command will output a list of the latest commits in chronological order, with the latest commit first.

How do I see my commit history?

On GitHub.com, you can access your project history by selecting the commit button from the code tab on your project. Locally, you can use git log . The git log command enables you to display a list of all of the commits on your current branch. By default, the git log command presents a lot of information all at once.

What is git status porcelain?

Porcelain Format Version 1 Version 1 porcelain format is similar to the short format, but is guaranteed not to change in a backwards-incompatible way between Git versions or based on user configuration. This makes it ideal for parsing by scripts.


2 Answers

git show --name-status <commit>

like image 159
eftshift0 Avatar answered Sep 18 '22 12:09

eftshift0


I found:

git show --stat --oneline b8351c4

Where b8351c4 is the regarded commit.

like image 26
Guillaume Chevalier Avatar answered Sep 17 '22 12:09

Guillaume Chevalier