繁体   English   中英

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

[英]gitLab - not able to push local branches to remote

我为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. 

看来您尝试推送受保护的分支。

如果您是项目所有者,请检查“受保护的分支”(当前的Gitlab版本在右上方的设置菜单中具有该分支)。

编辑:在当前的Gitlab版本中,受保护的分支如下所示: gitlab屏幕截图

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM