![](https://img-blog.csdnimg.cn/img_convert/fec98fd11ba9a4e6ba1534ede53c2e9b.png)
![](https://img-blog.csdnimg.cn/img_convert/c05602e966b2d5ae29d106cd70a8e4c0.png)
今天新分配的git账号和新项目,拉下来代码更改后发现push不上去,
![](https://img-blog.csdnimg.cn/img_convert/d4227d955affb7e6a82a27267560f883.png)
原因是因为权限不够,master分支被保护了, 重新修改了master权限
解决办法: master 分支是protected , development 没有push权限,故在git上修改一下master 分支对应的 权限即可
设置中 选择 Prorected Branches
![](https://img-blog.csdnimg.cn/img_convert/14fbe274334462f0102ad3c819a0ea72.png)
Allowed to push 更改 选择一个角色即可 ,而后 un protect
![](https://img-blog.csdnimg.cn/img_convert/7492732d117c0bd30aaf34453b4bdc04.png)
今天新分配的git账号和新项目,拉下来代码更改后发现push不上去,
设置中 选择 Prorected Branches
Allowed to push 更改 选择一个角色即可 ,而后 un protect