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.

Options

What is this?

portrait of Justin

This is the online home of Justin French, a designer & web application developer located in Melbourne, Australia. I like finding ways to make things work better. I like clarifying and simplifying. I like to understand how you understand things.

» read more

Subscribe to my feed

Follow me on Twitter

@justinfrench

More Notebook Articles

Show more notebook articles

Search