To ssh://xxx.com:8022/test/project.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'ssh://xxx.com:8022/test/project.git'

时间:2022-02-09 21:12:21

To ssh://xxx.com:8022/test/project.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://xxx.com:8022/test/project.git'

权限问题,项目创建者权限不够,需要maintainer或者owner 权限的人才能提交数据,提交完成后,可以修改项目的权限,
打开以下路径
project -> Settings -> Repository -> Protected Branches
然后修改可以push的权限组

然后项目创建者就可以push了