Git log

When I am working with git, I find it useful to take a quick look at the log. The default

[shell light=”1″]
$ git log
[/shell]

command doesn’t show the actual modified/added/deleted files. You can use the following command for that:

[shell light=”1″]
$ git log –pretty –stat

or

$ git log –pretty=format:"[%h] %ae, %ar: %s" –stat
[/shell]

I found the latter in one of Alex Young’s tweets.

If you have any favorite git log formats, please feel free to mention them in a comment.

Leave a Reply