You can remove these branches by using this command:
git rmpush origin :branch_name To remove the BranchA branch:
git rmpush origin :BranchA To remove the origin/BranchA branch:
git rmpush origin :origin/BranchA AndAlternatively you could use git branch -dr BranchA and so on.
Remove every branch except BranchA and origin/BranchA. You may have deleted the origin remote, in which case you should remove the remotes remote and re-add it as the origin remote.