gitLab - 无法将本地分支推送到远程

时间:2016-10-27 02:10:01

标签: git gitlab

我有为gitlab提供的开发者访问权限。我无法执行任何类型的"推送"对远程原点的操作。是否创建新的本地分支并尝试推送它或对现有本地分支进行更改并推送它。有什么建议或见解吗?

以下是我推送后立即收到的错误消息:

remote: git: /softwares/gitlab-5.2.1-0/common/lib/libcrypto.so.1.0.0: no version information available (required by git)        

remote: /softwares/gitlab-7.3.2-0/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /opt in PATH, mode 040777        
remote: GitLab: You are not allowed to access some of the refs!        
Pushing to http://10.200.10.66:90/yes/someservice.git
To http://10.200.10.66:90/yes/someservice.git
 ! [remote rejected] some_branch -> some_branch(pre-receive hook declined)



error: failed to push some refs to 'http://10.200.10.66:90/yes/someservice.git'

Completed with errors, see above. 

1 个答案:

答案 0 :(得分:3)

看起来你试图推动受保护的分支。

如果您是项目所有者,请检查"受保护的分支机构" (目前的Gitlab版本在右上方的设置菜单中有它。)

编辑:在当前的Gitlab版本中,受保护的分支看起来像这样: gitlab screenshot

只需取消保护some_branch或更改允许推送的人。