Checks if a git repository has a branch on its remote counterpart.