git push
Terminology
git push <remote> <branch> ¶ Push local branch into remote branch with the same name.
git push <remote> <localbranch>:<remotebranch> ¶ Push local branch into remote branch. <localbranch> defaults to current branch.
git push <remote> :<remotebranch> ¶ Delete branch from remote repositiory.
-u ¶ Set current local branch to track remote branch.
Facts, Thoughts and Opinions
Rename a remote branch.
git branch -m <oldname> <newname> # Rename the branch in your local repository.
git push <remote> :<oldname> # Remove the branch name you want to change on the remote.
git push <remote> <newname> # Push the new local branch name to the remote.
Images
[[/div]]