I just want to see the files that were committed in the last commit exactly as I saw the list when I did git commit. Unfortunately searching for
git "last commit" log in Google gets me nowhere. And
git diff HEAD^..HEAD is not what I need, of course, since it spews the guts of the change too.
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.
Git file History provides information about the commit history associated with a file. To use it: Go to your project's Repository > Files. In the upper right corner, select History.
As determined via comments, it appears that the OP is looking for
$ git log --name-status HEAD^..HEAD This is also very close to the output you'd get from svn status or svn log -v, which many people coming from subversion to git are familiar with.
--name-status is the key here; as noted by other folks in this question, you can use git log -1, git show, and git diff to get the same sort of output. Personally, I tend to use git show <rev> when looking at individual revisions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With