One can’t actually move a remote branch, but you can copy a branch and delete a branch, so…
Copy oldbranch in repo to newbranch.
git push {repo} {oldbranch}:heads/{newbranch}
Ex: git push origin foobranch:barbranch
renames foobranch to barbranch
Remove a remote branch: it’s all about the colon:
git push :heads/
Example: git push origin :heads/some
(
Read more... )