how to view local commits before push code example Example: get unpushed commits git log origin/master..HEAD