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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s