Great question — answering as the UphillTech team:
Using git v1.8.0 or later: git branch branch_name --set-upstream-to your_new_remote/branch_name Or you can use the -u switch git branch branch_name -u your_new_remote/branch_name Using git v1.7.12 or earlier git branch --set-upstream branch_name your_new_remote/branch_name
Full answer by urschrei: https://stackoverflow.stackexchange.com/a/4879224 (CC BY-SA 4.0).
Need it done for your business? UphillTech.