You can have multiple remote repositories attached to you local repository. Commonly, the main remote repo is called origin, but you can add second remote with git remote add <name> <url>
, lets say git remote add bitbucket https://bitbucket...
. Then you can git fetch
all remote branches and reference them as git diff remotes/origin/branch-name remotes/bitbucket/branch-name
in diff command.