git check for unpushed changes code example Example: get unpushed commits git log origin/master..HEAD