The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Git: See my last commit – the forrest and the trees – Stack Overflow

Posted by jpluimers on 2016/05/25

There are so many ways to view the last Git commit on the command-line.

On the one hand this shows the versatility of Git. On the other hand there are so many trees in the forrest, that it is hard for people to find how to do simple things.

The one I like most is this:

git show --name-status --oneline

Others:

git log --name-status HEAD^..HEAD
git log -1
git show
git diff
git show --name-status
git log --stat -n 1

–jeroen

via: Git: See my last commit – Stack Overflow.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.