This question already has an answer here:
Ok, I've created an
origin/origin/master branch and I've pushed it. I'm scared to do some remove operations. Whan can I do? Is it safe to run a remove operation?
Since "origin/master" branch on a remote can be protected by service provider I don't think this is a duplicate question.
If your remote is a Github repository, you might see a message like this: To github.com:username/your-repo.git ! [remote rejected] origin/master (refusing to delete the current branch: refs/heads/origin/master) error: failed to push some refs to 'gitgithub.com:username/your-repo.git' This is because the default branch is set to origin/master instead of master, and it is protected. Change the default branch under the "Settings" tab > "Branches".