Git: Removing several branches once?
-
The local branch can be removed by team
git branch -d branch_name
Remove the branch on a remote git-server can be removed by team
git push origin :branch_name
Both teams remove one branch. Is there any way to remove a few branches at once?
-
Remove several local branches:
$ git branch -d ветка1 ветка2 ... Deleted branch ветка1 (was 6bb54a3). Deleted branch ветка2 (was 6bb54a3). ...
Reposit a few branches
origin
:$ git push origin :ветка1 :ветка2 ... To ... - [deleted] ветка1 - [deleted] ветка2 ...