Have git show what changed after pulling

Have git show what changed after pulling

When pulling in the latest changes from the Cappuccino repository, I often ask myself what changed, that is, in which places I can expect improvements or differences. I found it therefore favorable to have git show me just that. After some searching, it turns out this is quite easy. Just open your ~/.gitconfig file and add the following two lines:

[alias]
  pulled = log -p --reverse --no-merges --stat @{1}..

From now on, you can use git pulled to show those changes. If you just want to see the commits but not the actual code that changed, simply remove the -p flag.

During searching I also found a rather nice list of tweaks to your ~/.gitconfig, which turns on coloring and other fancy things.