You're using the wrong operator to define the diff endpoints (confer this answer). You can use git diff origin/master
to see a diff between your currently checked out commit (HEAD) and origin/master, or you can see a list of commits with git log --all HEAD..origin/master
.
Using "origin" as a commit descriptor as you tried will produce an error (it is not a commit'ish or tree'ish reference), or it might be implicitly resolved, which you should avoid to get the exact results you want.