Here are two different questions but I think they are related.
When using Git, how do I find which changes I have committed locally, but haven\'t yet pushed
$ git fetch && git log ..origin/master --stat OR $ git fetch && git log ..origin/master --patch
$ git fetch && git log origin/master.. --stat OR $ git fetch && git log origin/master.. --patch