view all local commits for branch code example Example: get unpushed commits git log origin/master..HEAD