美文网首页
[Git]You are not allowed to acce

[Git]You are not allowed to acce

作者: laznrbfe | 来源:发表于2016-01-04 17:05 被阅读1432次

    使用Dashboard的git服务遇到如下问题:

    git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master 
    Pushing to `git地址`
    remote: GitLab: You are not allowed to access some of the refs!        
    To `git地址`
     ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to `git地址`
    Completed with errors, see above
    

    原因:master分支会自动设置为保护模式。
    解决:管理员去掉自动保护模式即可。

    相关文章

      网友评论

          本文标题:[Git]You are not allowed to acce

          本文链接:https://www.haomeiwen.com/subject/oflahttx.html