git.rst
changeset 2360 5179f42afc84
parent 2292 cd4554e0150e
child 2402 032327906671
equal deleted inserted replaced
2359:52bb40bb41b0 2360:5179f42afc84
   216 or specify concrete remote::
   216 or specify concrete remote::
   217 
   217 
   218   $ git pull $REMOTE
   218   $ git pull $REMOTE
   219   $ git pull origin
   219   $ git pull origin
   220 
   220 
   221 Delete local branch::
   221 Delete local branch (``-D`` is unsafe i.e. changes aren't pushed to any remote)::
   222 
   222 
   223   $ git branch -d $NAME
   223   $ git branch -d $NAME
       
   224   $ git branch -D $NAME
   224 
   225 
   225 Delete remote branch::
   226 Delete remote branch::
   226 
   227 
   227   $ git push --delete $REMOTE $BRANCH_NAME
   228   $ git push $REMOTE --delete $BRANCH_NAME
   228   $ git push -d $REMOTE $BRANCH_NAME
   229   $ git push $REMOTE -d $BRANCH_NAME
   229   $ git push -d origin $BRANCH_NAME
   230   $ git push origin -d $BRANCH_NAME
   230 
   231 
   231 To locally remove pointers to deleted remotely branches::
   232 To locally remove pointers to deleted remotely branches::
   232 
   233 
   233   $ git remote update --prune
   234   $ git remote update --prune
   234   $ git remote update --prune origin
   235   $ git remote update --prune origin