An answer from: https://stackoverflow.com/questions/11266478/git-add-remote-branch
I am not sure if you are trying to create a remote branch from a local branch or vice versa, so I've outlined both scenarios as well as provided information on merging the remote and local branches.
Creating a remote called "github":
git remote add github git://github.com/jdoe/coolapp.git git fetch github List all remote branches: