how to check last local commit in git code example Example: get unpushed commits git log origin/master..HEAD