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