You can use the following URL structure to compare commits in the same branch:
github.com/<username>/<repo_name>/compare/<commit1>...<commit2>
Replace values for username, repo_name, commit1(old commit) & commit2(new commit) acc. to your project.
The separator between the two commits is ... i.e. 3 dots.