git how to determine what you local commits are code example Example: get unpushed commits git log origin/master..HEAD