git see which commits are ahead code example Example: get unpushed commits git log origin/master..HEAD