Git Commits That Need to be Pushed
Published 27 May 08 by Justin French
I constantly find myself wondering what the difference is between what I’ve committed to my local Git repository, and what’s been pushed up to Github. Here’s one way, I’m sure there’s others:
git cherry -v origin/master
Or, how about a bash alias?
alias push?='git cherry -v origin/master'
Winner.
Updated 21 July 2008 to use origin/master instead of just origin, which works far more reliably in my various projects, with thanks to Stefan Naewe who emailed me with this suggestion.