git开发问题! [remote rejected] master -> master (pre-receive hook declined)

原因:权限问题,Develop角色默认下没有远程访问master的权限

解决方案:

方案一:在项目的【Setting】中的【Protected branches】可以设置哪些分支是被保护的,默认情况下【master】分支是处于被保护状态下的,develop角色的人是无法提交到master分支的,在下面的【Developers can push】打上钩就可以了。

方案二:使用其他分支push 入

文章来自:http://www.cnblogs.com/qingtouniao/p/6846120.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3