Terminology

git branch -a List all local and remote branches.

git branch -r List only remote branches.

git checkout -b <branch> <remote>/<remotebranch> Create local branch <branch> as tracking branch of <remote> branch <remotebranch>.

git checkout —track <remote>/<remotebranch> Create local branch <remotebranch> as tracking branch of <remote> branch <remotebranch>.

git ls-remote <remote> Lists all references to branches and tags that the remote knows about.

git push <remote> :<remotebranch> Delete branch from remote repositiory.

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

git remote show <remote> Show detailed information about a remote.

git remote -v Return all remote shortname(s) plus the URL(s) for those shortname(s).

Remote Git repository on another server.

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