I used to delete multiple branches in my local, but how can I delete the same branches in romote?
git branch | grep "<pattern>" | xargs git branch -D
I used to delete multiple branches in my local, but how can I delete the same branches in romote?
git branch | grep "<pattern>" | xargs git branch -D
Answer from How do I delete a Git branch locally and remotely?
To delete remote branchs since Git 1.7.0 version, you can do:
git push <remote_name> --delete <remote_branch_name>
For example if there is in origin a branch called experiment the command will be:
git push origin --delete experiment
Note: Use this command with caution, so you have to perform each deletion at a time.