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.

git push <remote> <tag> Push a git tag to remote repository.

git push —tags Push all pending tags to remote repository.

-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]]
  •   Subtopics

  •   Writings

  Sources & Bookmarks

Name/Link Date
git push Pending