The other day I needed to figure out if a branch a script was switching to had a remote already. By running the following command it will list if the branch is tracking a remote branch.

git branch -vv -a

In this example image you can see master is tracking a remote branch because of the [origin/master] but the test branch does not.