How do I compare repos from different projects through github?

github, repository

Solution

On GitHub it's not possible to compare two unrelated repos.

On your computer you can:

- Go to the working directory of your local repo

- Add a remote for the other repo and fetch it

- Compare using `git diff`

For example:

cd /path/to/repo
git remote add other URL_TO_OTHER
git fetch other
git diff other/branchname
git diff ..other/branchname  # diff in the other direction

Problem

Git novice here, how do I compare two completely separate repos (no forks / branches between them) using github? If this is not possible, how do I compare the two repos?

Original source

Related problems