How to Remove a Remote Git Branch Tue Aug 09 2022 From here. 123456789101112131415161718192021# 1. List all the branches(both local and remote).git branch -a# *master# test# remote/origin/master# remote/origin/test# 2. Remove the local branch.git branch -d test# Deleted branch test (was ########).# 3. List all the branches(both local and remote).git branch -a# *master# remote/origin/master# remote/origin/test# 4. Remove the remote branch.git push origin --delete test# To <URL of your repository>.git# - [deleted] test