标签云

微信群

扫码加入我们

WeChat QR Code

如何删除

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.

2018年05月23日58分13秒

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".

2018年05月24日58分13秒