錯誤:
首次使用gitee向別人的repo提交代碼,發(fā)現(xiàn)出現(xiàn)權(quán)限問題無法push到master,提交命令如下:
git push -u origin master:master
錯誤信息如下:
?分析解決:
查看repo的分支信息,發(fā)現(xiàn)master分支是保護分支,管理員才能push,而我的賬戶是開發(fā)者權(quán)限。只能提交到feature,或自建的分支。
文章來源:http://www.zghlxwxcb.cn/news/detail-663214.html
?提交到feature分支的命令:文章來源地址http://www.zghlxwxcb.cn/news/detail-663214.html
git push -u origin master:feature
到了這里,關(guān)于Gitee push錯誤 Access denied: You do not have permission to push to the protected branch ‘master‘ via的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!