how do I remove a remote branch when I get an error?

笑着哭i 提交于 2019-12-05 09:55:09

Make sure in your gitolite config, you have the rewind flag on so instead of RW use RW+. That will allow you to delete branches and commits.

git push -f origin :next

This looks like the error you get when you try to push to a repo that has denyDeletes = true. It's intended to prohibit you from rewriting history in the remote (it is usually accompanied by denyNonFastForwards = true). That being the case, you can only delete the branch by deleting it on the remote; --force won't work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!