Changes Since Last Push in Git
The "git status" command only shows uncommitted changes locally. But what if we need to see "what files would get pushed if we did a push now?". The answer is not trivial (and no, "git push --dry-run" is not useful since it does not show changed files).
I've been looking for an answer, and since I am no git expert, it took me a while to find one, until @iosebi came to rescue. Apparently, what you need is this line of code:
git log origin/master.. --statThank you, @iosebi! I probably hate git a little less, now :)





Other Git Tips
You might also like the git aliases which speeds up repetitive tasks by changing the commands in your git/config file.
For a detailed look you can check out gitready.com/intermediate/2009/02/06/helpful-command-aliases.html or git.wiki.kernel.org/index.php/Aliases