码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-05-12 17:21:56      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:prot   eve   protected   情况   ast   远程访问   远程   pre   can   

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

解决方案:

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

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

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

标签:prot   eve   protected   情况   ast   远程访问   远程   pre   can   

原文地址:http://www.cnblogs.com/qingtouniao/p/6846120.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!