Cannot push after BFG Repo-Cleaner

孤街醉人 提交于 2019-12-25 08:17:19

问题


We have a self-hosted Gitlab instance.

I used BFG-Repo-Cleaner and everything went well, but when I try to push changes I get this:

remote: GitLab: You are not allowed to force push code to a protected branch on this project.

P.S. I'm owner of the project. Earlier I made fork of this project and I had no problems pushing changes there.


回答1:


I assume you know what you are doing and you really want to force a push. GitLab disallows a forced push to the master branch by default. You can remove that protection. Click the cogwheel icon in your project and select Protected branches. Then click the Unprotect button for the master branch. The forced push will work then.



来源:https://stackoverflow.com/questions/39007133/cannot-push-after-bfg-repo-cleaner

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