To expand on these answers, each branch basically exists in three places:
- On a remote server, for example.
origin/foo origin/foo ( git fetch)foo ( git merge origin/foo git fetch - , git pull).
git branch -d , . git branch -d -r ( git remote prune origin ).
, git push. - git push origin :branchname. , localref:remoteref, , , . git push origin localbranch:remotebranch. localbranch , git , .
, , git . --delete, git push origin --delete branchname , git push origin :branchname, .