git check if there are unpushed commits code example Example: get unpushed commits git log origin/master..HEAD