現(xiàn)象
? ? ? ? 本地使用?git push --force origin 命令強(qiáng)制推送時(shí),出現(xiàn)
“You are not allowed to force push code to a protected branch on this project”錯(cuò)誤,意為該分支為受保護(hù)的,不允許這類操作,可以通過(guò)git管理后臺(tái)關(guān)閉該項(xiàng)目分支的保護(hù)狀態(tài)處理。
設(shè)置
使用管理員賬號(hào)進(jìn)入git中的項(xiàng)目設(shè)計(jì),setting> repository>protected branches > unprotect 關(guān)閉保護(hù)。
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-516304.html
?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-516304.html
到了這里,關(guān)于git push錯(cuò)誤:You are not allowed to force push code to a protected branch on this project的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!