zoukankan      html  css  js  c++  java
  • remote: GitLab: You are not allowed to push code to protected branches on this project.

    "C:Program FilesGitingit.exe" push --recurse-submodules=check --progress "origin" refs/heads/master:refs/heads/master
    Counting objects: 3, done.
    Delta compression using up to 4 threads.
    Total 3 (delta 1), reused 0 (delta 0)
    remote: GitLab: You are not allowed to push code to protected branches on this project.       
    To http://192.168.210.199/XXX.git
    ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'http://192.168.210.199/XXX.git'
    Done

    image

    默认 master 分支是处于被保护状态下的,develop 角色是没有权限提交到 master 分支的,Gitlab 更推荐遵循 Gitflow 的方式,临时解决的方式是  Setting中 => Protected branches 启用 master 分支可被 develop 角色提交即可。

  • 相关阅读:
    JSP—简介
    Dream
    树状数组模板
    夜未央Test1题解
    夜未央Test1
    并查集模板
    给即将面临Noip的二班同学
    USACO chapter1
    二叉堆模板
    线段树模板
  • 原文地址:https://www.cnblogs.com/twodog/p/12137591.html
Copyright © 2011-2022 走看看