Fresh Blurbs

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.. --stat

Thank you, @iosebi! I probably hate git a little less, now :)

comments powered by Disqus