Remote branch

First, understand
1, the remote branch is a local branch of immovable
clone, Git will automatically name your remote repository to this origin,
and down all its data, establish a point to its origin / master, but you can not locally change their data.
And also the establishment of a master branch and origin / master tracking correspondence.
Second, the management command
1, push modify remote branch
  git push origin hotfix
 is automatically extended to:
   git the Push Origin refs / Heads / Hotfix: refs / Heads / Hotfix
2, get remote branches to local, then establish a local branch tracking a remote branch
   --- Origin hostfix1 FETCH git
   --- git Checkout -b hostfix1 Origin / create a local branch hostfix1-- to keep track of Origin / hostfix1
     == git Checkout --track Origin / serverfix - create a local branch serverfix to keep track of Origin / serverfix
3, delete remote branch
  git push origin: hotfix ----- empty push local to remote, understood to delete remote branch

Guess you like

Origin www.cnblogs.com/justart/p/11519897.html